Redshift Connector
Description
Amazon Redshift is a data warehouse service in the cloud to analyze large datasets using standard SQL and existing business intelligence tools. This component allows executing SQL statements and managing data in Amazon Redshift using the AWS Redshift Data API.
API Documentation
This component was built using the AWS SDK for JavaScript v3
Connections
Access Key and Secret
key: awsAccessKeySecretAn AWS IAM access key pair is required to interact with Redshift. Ensure the key pair generated in AWS has proper permissions to the Redshift resources to access. Read more about Redshift IAM actions in the AWS docs.
Setup Steps
- Sign in to the AWS Console and navigate to Identity and Access Management (IAM)
- Under the Access Keys section, select Create access key
- Once created, copy the Access Key and Secret access key
Configure the Connection
Create a connection of type AWS Access Key/Secret Key and enter:
- Access Key ID: The AWS Access Key ID
- Secret Access Key: The AWS Secret Access Key
| Input | Notes | Example |
|---|---|---|
| Access Key ID | The AWS Access Key ID used to authenticate requests to the Redshift Data API. | AKIAIOSFODNN7EXAMPLE |
| Secret Access Key | The AWS Secret Access Key paired with the Access Key ID for request signing. | wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY |
AWS Role ARN
key: awsAssumeRoleTo enable IAM role authentication, log in to the AWS Console and navigate to Identity and Access Management (IAM).
Setup Steps
Create an ARN user and generate credentials:
-
Navigate to Users and select Create User.
- Provide a user name and check the box providing user access to the AWS Management Console if needed.
- Once the user is created, copy the ARN provided in the summary for a later step.
-
To obtain the ARN for an existing user, click on the designated username from the Users page and the ARN will be provided in the summary section.
-
From the summary section, select Create access key
- Select Third-party service as the access key type and select Next.
- Set a description and select Create access key.
- Copy the Access Key and Secret access key for use in the connection configuration.
Create and assign a role:
- Navigate to Roles and select Create Role.
- Select Custom Trust Policy for the Trusted entity types.
- Copy the following statement into the statement console, replacing ARN with the user's actual ARN from the previous step:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "ARN"
},
"Action": "sts:AssumeRole"
}
]
}
- When adding permissions, provide the redshift:* permission to grant access to all Redshift operations.
- Complete the remaining steps and select Create Role.
Configure the Connection
Create a connection of type AWS Role ARN and enter:
- Role ARN: The ARN of the IAM role to assume (e.g.,
arn:aws:iam::OtherAccount-ID:role/assumed-role-name) - Access Key ID: The AWS IAM Access Key ID
- Secret Access Key: The AWS IAM Secret Access Key
- External ID (optional): A shared secret for enhanced security; see the AWS docs for more information
| Input | Notes | Example |
|---|---|---|
| Access Key ID | An AWS IAM Access Key ID | AKIAIOSFODNN7EXAMPLE |
| External ID | Provides enhanced security measures to the connection. Optional, but recommended. Please check AWS docs for more information. | shared-common-secret |
| Role ARN | An AWS IAM Role ARN | arn:aws:iam::OtherAccount-ID:role/assumed-role-name |
| Secret Access Key | An AWS IAM Secret Access Key | wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY |
Data Sources
Select AWS Region
Select an AWS region | key: selectRegion | type: picklist
Actions
Describe Statement
Get detailed information about a specific SQL statement in Redshift. | key: describeStatement
| Input | Notes | Example |
|---|---|---|
| AWS Connection | Select the AWS connection to use for Redshift Data API access. | |
| AWS Region | AWS provides services in multiple regions, like us-west-2 or eu-west-1. | us-east-1 |
| Statement ID | The unique identifier of the executed SQL statement returned by the Redshift Data API. | 12345678-1234-1234-1234-123456789012 |
Example Payload for Describe Statement⤓
Execute SQL Statement
Execute a SQL statement in Redshift. | key: executeStatement
| Input | Notes | Example |
|---|---|---|
| Additional Fields | Additional optional fields: includes Statement Name, Result Format, Session Keep Alive (seconds), Client Token, and Session ID. | |
| AWS Connection | Select the AWS connection to use for Redshift Data API access. | |
| AWS Region | AWS provides services in multiple regions, like us-west-2 or eu-west-1. | us-east-1 |
| Cluster Identifier | The identifier of the Redshift cluster. Required for cluster connections using either Secrets Manager or temporary credentials. | my-redshift-cluster |
| Database Name | The name of the database to connect to. This parameter is required when authenticating using either Secrets Manager or temporary credentials. | analytics |
| Database User | The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials. | admin |
| Get Statement Result | When true, waits for the statement to finish executing and returns its result set. Only SELECT statements produce result rows. <strong>Note:</strong> long-running statements may cause a timeout. | true |
| Secret ARN | The ARN of the AWS Secrets Manager secret containing database credentials. Required when authenticating using Secrets Manager. | arn:aws:secretsmanager:us-east-1:123456789012:secret:redshift-credentials |
| SQL Parameters | Named parameters that are substituted into the SQL statement at runtime using the colon-prefixed placeholder syntax (e.g., :status). | status: active, limit: 100 |
| SQL Statement | The SQL statement to run against the Redshift database. Supports DML (INSERT, UPDATE, DELETE), DDL (CREATE, DROP, ALTER), and query (SELECT) statements. | |
| Workgroup Name | The name of the Redshift serverless workgroup. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials. | my-workgroup |
Example Payload for Execute SQL Statement⤓
Get Statement Result
Retrieve the results of an executed SQL statement from Redshift. | key: getStatementResult
| Input | Notes | Example |
|---|---|---|
| AWS Connection | Select the AWS connection to use for Redshift Data API access. | |
| AWS Region | AWS provides services in multiple regions, like us-west-2 or eu-west-1. | us-east-1 |
| Next Token | The pagination token returned from a previous list request, used to retrieve the next page of results. | AQICAHi2k9rFZ... |
| Statement ID | The unique identifier of the executed SQL statement returned by the Redshift Data API. <strong>Note:</strong> Only statements that return results are supported. | 12345678-1234-1234-1234-123456789012 |
Example Payload for Get Statement Result⤓
List Statements
List executed SQL statements in Redshift. | key: listStatements
| Input | Notes | Example |
|---|---|---|
| AWS Connection | Select the AWS connection to use for Redshift Data API access. | |
| AWS Region | AWS provides services in multiple regions, like us-west-2 or eu-west-1. | us-east-1 |
| Fetch All | When enabled, automatically fetches all pages of results. Next Token and Max Results inputs are ignored when this is enabled. | false |
| Filters | Optional filters to narrow the returned statements by database, workgroup, cluster, and statement name. | |
| Pagination | Page and page-size controls. | |
| Status | Filters the returned statements to only those matching this execution status. Use ALL to retrieve statements in any state. | ALL |
Example Payload for List Statements⤓
Raw Request
Send raw HTTP request to Redshift Data API. | key: rawRequest
| Input | Notes | Example |
|---|---|---|
| Action | The Redshift Data API operation to invoke. Determines which API method is called with the provided body. | RedshiftData.ExecuteStatement |
| AWS Connection | Select the AWS connection to use for Redshift Data API access. | |
| AWS Region | AWS provides services in multiple regions, like us-west-2 or eu-west-1. | us-east-1 |
| Body | The JSON payload sent to the selected Redshift Data API operation. The required fields vary by action — refer to the AWS Redshift Data API documentation for the expected structure of each operation. |
Changelog
2026-07-16
Restructured action inputs into structured objects for an improved user experience.
- Execute SQL Statement groups its optional inputs (Session ID, Statement Name, Result Format, Session Keep Alive (seconds), and Client Token) into Additional Fields
- List Statements groups its filter inputs (Database Name, Workgroup Name, Cluster Identifier, and Statement Name) into Filters and its pagination inputs (Next Token and Max Results) into Pagination
2026-05-28
Various modernizations and documentation updates
2026-05-21
Added Fetch All input to the List Statements action to automatically paginate through and return all SQL statements in a single response
2026-04-30
Updated spectral version
2026-03-20
Initial release of the Redshift component with comprehensive integration capabilities