Execute SQL
redshift_data.execute_statement
ActionAmazon Web Servicesconnection required
Calls the AWS redshift_data API (SigV4).
Run SQL on Redshift without a driver.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Amazon Redshift Data API
- Secret shape
- {"access_key_id", "secret_access_key"}
- Config it needs
- region
- Resolved by
- config.connection_id, else node.connection_id
Configuration
7 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
region AWS region (overrides the connection). | string | No | — | — | — |
sql SQL to run; the call is refused without it. | string | Yes | — | — | — |
database Database name. | string | Yes | — | — | — |
cluster_identifier Provisioned cluster id. | string | No | — | — | — |
workgroup_name Serverless workgroup. | string | No | — | — | — |
secret_arn Secrets Manager ARN for credentials. | string | No | — | — | — |
db_user Database user (temporary credentials). | string | No | — | — | — |
- At least one of cluster_identifier, workgroup_name must be set.
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
statement_id | string | — |
database | string | — |
{
"database": "",
"statement_id": ""
}Notes
- Asynchronous — poll describe_statement until FINISHED.
Related Amazon Redshift Data API nodes
See Execute SQL run in a workflow.
In a technical demo we add the Amazon Redshift Data API connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.