Integrations
Sources
Amazon Redshift

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.

  1. Go to Platform > Sources.
  2. Under Connect a new source, click Amazon Redshift.
  3. Enter a Name and a Key. The key can't be changed later.
  4. Click Add warehouse. Knock opens the warehouse's Details tab.

Connect Amazon Redshift

#
  1. Create a database user for Knock and grant it read access to the tables you'll sync:

  2. Create an IAM role that Knock can assume, with permission to call redshift:GetClusterCredentials for that user and database.

  3. On the warehouse's Details tab, fill in the connection and click Save connection:

    FieldWhat to enter
    HostThe cluster endpoint, such as cluster.abc123.us-east-1.redshift.amazonaws.com
    PortDefaults to 5439
    DatabaseThe database to read from
    Cluster identifierThe Redshift cluster identifier
    RegionThe cluster's AWS region, such as us-east-1
    Database userThe user you created for Knock
    IAM role ARNThe role Knock assumes, such as arn:aws:iam::123456789012:role/knock-sync
  4. Click Test connection.

If your cluster isn't reachable from the internet, connect through an SSH tunnel.

Once the connection works, create a sync to start syncing data into Knock. Knock reads a TIMESTAMP column mapped to a user's created_at as UTC. If the values are stored in another timezone, see timestamps for how to convert them in your query.

New chat