/

Redshift

Warehouse connector

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.

Connect Redshift
Connect Redshift
See setup steps
See setup steps

Warehouse

Category

Batch

Sync mode

p95 3.8 s

Latency

9 min

Setup time

What it can do

Triggers · 2
  • Query returned new rowsPoll
  • Data API statement finishedEvent
Actions · 4
  • 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.

aws redshift-data execute-statement \
  --workgroup-name analytics \
  --database dev \
  --secret-arn arn:aws:secretsmanager:us-east-1:123456789012:secret:tessel \
  --sql "SELECT * FROM finance.open_invoices WHERE due_date < CURRENT_DATE"
aws redshift-data execute-statement \
  --workgroup-name analytics \
  --database dev \
  --secret-arn arn:aws:secretsmanager:us-east-1:123456789012:secret:tessel \
  --sql "SELECT * FROM finance.open_invoices WHERE due_date < CURRENT_DATE"
aws redshift-data execute-statement \
  --workgroup-name analytics \
  --database dev \
  --secret-arn arn:aws:secretsmanager:us-east-1:123456789012:secret:tessel \
  --sql "SELECT * FROM finance.open_invoices WHERE due_date < CURRENT_DATE"

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:DescribeStatement and redshift-data:GetStatementResult

  • redshift-serverless:GetCredentials or redshift:GetClusterCredentials

  • SELECT on read schemas and INSERT on the staging schema only

Setup

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.

  1. Create a database user and grant schema accessRedshift3 min
  2. Create an IAM role with Tessel's external IDAWS3 min
  3. Attach the Data API policy to the roleAWS1 min
  4. Paste the role ARN and choose the workgroupTessel2 min
  5. 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.

Connect Redshift
Connect Redshift
All integrations
All integrations

One email a month. Only what shipped.

A1

Product

C1

Layouts

D1

Company

E1

Template

F1

All systems operational
fra41 ms
iad38 ms
sin52 ms

C2

Elsewhere

XLinkedInGitHubYouTube

E2

Move across the wordmark168 blocks · iso 30°

One email a month. Only what shipped.

A1

Product

C1

Layouts

D1

Company

E1

Template

F1

All systems operational
fra41 ms
iad38 ms
sin52 ms

C2

Elsewhere

XLinkedInGitHubYouTube

E2

Move across the wordmark168 blocks · iso 30°

One email a month. Only what shipped.

A1

Product

C1

Layouts

D1

Company

E1

Template

F1

All systems operational
fra41 ms
iad38 ms
sin52 ms

C2

Elsewhere

XLinkedInGitHubYouTube

E2

Move across the wordmark168 blocks · iso 30°

Create a free website with Framer, the website builder loved by startups, designers and agencies.