How to sync data from Amazon Redshift into Knock
Sync Amazon Redshift models to Knock users, tenants, objects, audiences, and subscriptions.
Knock connects to Redshift by assuming an IAM role in your AWS account and requesting temporary credentials for a database user. You don't give Knock a password. Every environment in your account can sync from the warehouse once it's connected.
Add the warehouse
#To add or edit a warehouse, you need the owner or admin role, or a custom permission group that's allowed to manage integrations.
- Go to Platform > Sources.
- Under Connect a new source, click Amazon Redshift.
- Enter a Name and a Key. The key can't be changed later.
- Click Add warehouse. Knock opens the warehouse's Details tab.
Connect Amazon Redshift
#-
Create a database user for Knock and grant it read access to the tables you'll sync:
-
Create an IAM role that Knock can assume, with permission to call
redshift:GetClusterCredentialsfor that user and database. -
On the warehouse's Details tab, fill in the connection and click Save connection:
-
Click Test connection.
If your cluster isn't reachable from the internet, connect through an SSH tunnel.
If you map a TIMESTAMP column to a user's created_at, convert it to TIMESTAMPTZ first. See timestamps.
Once the connection works, create a sync. See create a sync.