awsConnect Redshift

Data warehouse requirements

  1. Connect to your Redshift Cluster

  2. Execute the following SQL. These commands create a roadway user and grant read and write permissions to the tables (view Data warehouse requirements) required by Roadway. Make sure to change the placeholders for the correct database and schema Roadway should use; we do not need access to your entire data warehouse.

CREATE USER roadway_user PASSWORD <'your_strong_password'>;

GRANT USAGE ON SCHEMA <your_database_name>.<your_schema_name> TO roadway_user;
GRANT CREATE ON SCHEMA <your_database_name>.<your_schema_name> TO roadway_user;
GRANT SELECT, INSERT ON ALL TABLES IN SCHEMA <your_database_name>.<your_schema_name> TO roadway_user;
ALTER DEFAULT PRIVILEGES FOR USER <your_internal_management_user> IN SCHEMA <your_database_name>.<your_schema_name>
GRANT SELECT ON TABLES TO roadway_user;

Next you need to Configure Network Accessibility (Using AWS Management Console)

  1. Go to AWS Management Console > Redshift and select your cluster

  2. Make sure the cluster security settings allow for inbound connections. For this, you can follow this AWS Tutorialarrow-up-right.

Afterwards, share connection credentials with Roadway:

  • cluster name / endpoint, e.g. example_cluster.<account_id>.<your-cluster-region>.redshift-serverless.amazonaws.com

  • database

  • schema

  • user

  • password

  • region, e.g. us-west-2

  • port (if not provided, we assume the default - 5439 )

We recommend sharing these credentials via sharing mechanismsarrow-up-right in password management systems.

Last updated