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.

FieldTypeRequiredDefaultConstraintsExample
region
AWS region (overrides the connection).
stringNo———
sql
SQL to run; the call is refused without it.
stringYes———
database
Database name.
stringYes———
cluster_identifier
Provisioned cluster id.
stringNo———
workgroup_name
Serverless workgroup.
stringNo———
secret_arn
Secrets Manager ARN for credentials.
stringNo———
db_user
Database user (temporary credentials).
stringNo———
  • At least one of cluster_identifier, workgroup_name must be set.

Output

One shape.

result

FieldTypeExample
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.