Redshift
Run Redshift queries as steps in a Tessel workflow through the Data API and get typed rows back. Use them to decide what happens next, then load results into a staging schema.
Warehouse
Category
Batch
Sync mode
p95 3.8 s
Latency
9 min
Setup time
What it can do
- Query returned new rowsPoll
- Data API statement finishedEvent
- Run a queryQuery
- Insert rowsWrite
- Copy from S3Batch
- Unload to S3Batch
Overview
The Redshift connector runs SQL through the Redshift Data API, so Tessel needs no inbound network path to your cluster. Queries can start runs on a schedule or run mid-workflow as a lookup, and every statement shows up in the trace of its run.
Teams use it to post accrual entries to NetSuite at month end, to sync revenue totals into QuickBooks and to move large extracts through Amazon S3 for other teams.
Supported deployments
Provisioned clusters on RA3 and DC2 nodes
Redshift Serverless workgroups
Credentials from Secrets Manager or temporary IAM database credentials
How the Data API works
Tessel calls ExecuteStatement, waits for the statement with DescribeStatement and pages through rows with GetStatementResult. Rows are checked against the expected columns. Loads use COPY from a staged manifest, so a retry never loads the same file twice.
Large exports
The Data API returns up to 100 MB of results per statement. For anything larger, use the unload action, which writes Parquet files to an S3 prefix you choose. The Amazon S3 connector can then pick the files up in the same workflow.
Permissions needed
Tessel signs in through a cross-account IAM role with an external ID and calls the Data API as a database user you create. Grant that user read access to the schemas workflows query and write access to one staging schema.
redshift-data:ExecuteStatement,redshift-data:DescribeStatementandredshift-data:GetStatementResultredshift-serverless:GetCredentialsorredshift:GetClusterCredentialsSELECTon read schemas andINSERTon the staging schema only
Five steps. About nine minutes.
Most of the time goes into the IAM role and database user. Tessel runs a test statement before you finish.
- Create a database user and grant schema accessRedshift3 min
- Create an IAM role with Tessel's external IDAWS3 min
- Attach the Data API policy to the roleAWS1 min
- Paste the role ARN and choose the workgroupTessel2 min
- Run a test query and check the resultVerify3.8 s
Your Redshift queries, in a workflow.
Connect Redshift on the free plan. Up to three builders and 10,000 runs a month, no card required.