Setting up the Redshift destination connector involves setting up Redshift entities (user, grants) through Redshift access, and configuring the Redshift destination connector using Whaly UI.
This page describes the step-by-step process of setting up the Redshift destination connector.
Step 1: Create a Whaly read only user in Redshiftโ
To set up the Redshift destination connector, you first need to connect to your Redshift server to run some SQL queries.
CREATEUSERwhaly_biWITHENCRYPTEDPASSWORD'some_password_here';GRANTCONNECTONDATABASEdatabase_nameto whaly_bi;\c database_nameGRANTSELECTONTABLEinformation_schema.tablesTO looker;GRANTSELECTONTABLEinformation_schema.columnsTO looker;GRANTSELECTON ALL SEQUENCES INSCHEMA public TO whaly_bi;GRANTSELECTON ALL TABLES INSCHEMA public TO whaly_bi;
Must contain at least one uppercase letter, one lowercase letter, and one number.
Can use any printable ASCII characters (ASCII code 33 to 126) except ' (single quote), " (double quote), \`,/,@`, or space.
If you're using a schema other than public, run this command to grant usage permissions to Whaly:
To make sure that future tables you add to the public schema are also available to the whaly_bi user, run these commands:
Depending on your setup, the preceding commands may need to be altered. If another user or role is creating tables that the whaly_bi user needs future permissions for, you must specify a target role or user to apply the whaly_bi user's permission grants for:
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON tables TO whaly_bi;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON sequences TO whaly_bi;
ALTER DEFAULT PRIVILEGES FOR USER <USER_WHO_CREATES_TABLES> IN SCHEMA public GRANT SELECT ON tables TO whaly_bi;
ALTER DEFAULT PRIVILEGES FOR USER <USER_WHO_CREATES_TABLES> IN SCHEMA public GRANT SELECT ON sequences TO whaly_bi;
-- or
ALTER DEFAULT PRIVILEGES FOR ROLE <ROLE_THAT_CREATES_TABLES> IN SCHEMA public GRANT SELECT ON tables TO whaly_bi;
ALTER DEFAULT PRIVILEGES FOR ROLE <ROLE_THAT_CREATES_TABLES> IN SCHEMA public GRANT SELECT ON sequences TO whaly_bi;