Skip to main content
ClaudeChatGPT

Amazon Redshift

Use this guide to connect Amazon Redshift to Wren AI and choose the authentication method that fits your setup.

Plan support

Included in all plans

IP Whitelist for Wren AI Cloud

Wren AI needs to access your Redshift database via the outbound IP address of Wren AI Cloud. If you have applied network access controls on top of Redshift, please add the IP address of the Wren AI service to the allowed IP list.

Scroll to the bottom of the data source connection page to find the IP address.

Required Permissions

Wren AI connects to Redshift as a regular database user and only issues read-only queries — SELECT against your tables/views and metadata catalogs. It will never INSERT, UPDATE, DELETE, or run DDL. Read-only grants are sufficient — and recommended — for a secure connection.

Do not connect as an administrator

Avoid using a superuser or the cluster's admin account as the connecting account. Use a dedicated read-only user whenever possible.

Database user permissions (both authentication methods)

The database user needs:

CategoryPrivilegeNotes
LoginA valid database userRequired to connect.
Schema accessUSAGE on the schemas you want Wren AI to readFor example GRANT USAGE ON SCHEMA analytics TO wren_ai;.
Business dataSELECT on the tables/views in those schemasFor example GRANT SELECT ON ALL TABLES IN SCHEMA analytics TO wren_ai;.
Metadata discoveryRead access to information_schema and pg_catalogAvailable to authenticated users in standard setups.

Create a dedicated read-only user:

CREATE USER wren_ai PASSWORD 'YourStrongPassword1';
GRANT USAGE ON SCHEMA analytics TO wren_ai;
GRANT SELECT ON ALL TABLES IN SCHEMA analytics TO wren_ai;

-- Also cover tables created later
ALTER DEFAULT PRIVILEGES IN SCHEMA analytics GRANT SELECT ON TABLES TO wren_ai;

AWS credentials permissions (AWS Credentials method only)

If you authenticate with AWS credentials instead of a database password, the IAM identity needs at least the AmazonRedshiftReadOnlyAccess policy.

To add an Amazon Redshift connection, click on the Redshift option in the Connect a data source section. connect

Connect

Fill in the connection settings: redshift

Display name

The display name for the database in the Wren AI interface.

Authentication Method

Choose between two authentication methods: Username and Password and AWS Credentials.

Authentication Method Selection

Choose the authentication method that best fits your setup:

  • Username and Password: Use this if you have direct database credentials
  • AWS Credentials: Use this if you prefer AWS IAM authentication and have the cluster identifier

Host

The endpoint URL of your Redshift cluster (e.g., my-cluster.abc123.us-east-1.redshift.amazonaws.com).

Port

The port number for your Redshift cluster (default: 5439).

Username

The Redshift database username.

Password

The password for the Redshift database username.

Database

The name of the database you want to connect to.

AWS Credentials required permissions

If you choose to use AWS credentials, you need to have at least the AmazonRedshiftReadOnlyAccess policy granted. See Required Permissions above.

Click Next to start the connection and go to the next step.

Select Tables

All tables of your connected Redshift database will be listed in this step. Select which tables you want to use in Wren AI. Each selected table will be created as a data model. See the Modeling documentation to learn more about data models. select_table

Define relationships

Define the relationships among selected tables in this step. If you have defined primary keys and foreign keys in your Redshift dataset, we will list suggested relationships based on that information. If not, you can also add relationships by clicking the Add relationships button on the table blocks. define_relationship_1

Define the following properties in a relationship:

  • From: Select the left side table and column of this relationship.
  • To: Select the right side table and column of this relationship.
  • Relationship Type: Select the type of relationship. define_relationship_2

Find more information about relationships in Modeling - Working with Relationships.

You can also skip this step and finish the connection.

Notice

VPC and Security Group Configuration

Make sure your Redshift cluster's VPC and security groups allow connections from the Wren AI instance. You may need to configure inbound rules to allow traffic on port 5439.

Tested versions

Amazon Redshift is a managed service that AWS updates continuously, so there is no database version to pin. Note that the AWS Credentials authentication method requires a cluster identifier and therefore applies to provisioned clusters. If you hit an environment-specific issue, please contact us.