Seda
  • Getting Started
  • Integrations
    • Integration Settings
    • Integrations
      • BigQuery
        • BigQuery Metadata Extracted
      • Snowflake
        • Snowflake Metadata Extracted
      • dbt cloud
      • dbt core
      • Redshift
        • Redshift Metadata Extracted
      • Postgres
        • Postgres Metadata Extracted
      • MySQL
        • MySQL Metadata Extracted
      • Confluence
        • Confluence Metadata Extracted
    • Security
      • Connecting via Reverse SSH Tunnel
      • Connecting via SSH Tunnel
  • FAQs
  • Policies
    • Terms of Use
    • Privacy Policy
    • Security Policy
    • Data Processing Agreement
Powered by GitBook
On this page
Export as PDF
  1. Integrations
  2. Integrations

Redshift

An overview of the Redshift integration with Seda

Previousdbt coreNextRedshift Metadata Extracted

Last updated 3 months ago

Getting Started with Redshift

There are three steps to connect Redshift with Secoda:

  1. Create a database user

  2. Connect Redshift to Secoda

  3. Whitelist Secoda IP Address

Create a Database User

The username and password you’ve already created for your cluster is your admin password, which you should keep for your own usage. For Secoda, and any other 3rd-parties, it is best to create distinct users. This will allow you to isolate queries from one another using and perform audits easier.

To create a , you’ll need to log into the Redshift database directly and run the following SQL commands:

Secoda only uses the system tables for our metadata extraction, the extraction query can be viewed .

-- Create a user named "secoda" that Secoda will use when connecting to your Redshift cluster.
CREATE USER secoda PASSWORD '<enter password here>';

-- Allows the "secoda" user to query metadata
-- Explaination of query here -> https://stackoverflow.com/questions/48567440/granting-permissions-on-redshift-system-tables-to-non-superusers
ALTER USER secoda SYSLOG ACCESS UNRESTRICTED;

-- Complete this query for any schemas you would like Secoda to extract
GRANT REFERENCES ON ALL TABLES IN SCHEMA <schema_name> TO secoda

-- Optionally provide SELECT access for the preview, query blocks, and profiling
GRANT SELECT ON ALL TABLES IN SCHEMA <schema_name> TO secoda

GRANT SELECT ON svv_table_info TO secoda;

When connecting to Redshift in Secoda, use the username/password you’ve created here instead of your admin account.

Connect Redshift to Secoda

After creating a Redshift warehouse, the next step is to connect Secoda:

  1. In the Secoda App, select ‘Add Integration’ on the Integrations tab

  2. Search for and select ‘Redshift’

  3. Enter your Redshift credentials

  4. Click 'Connect'

Whitelist Secoda IP Address

Networking

Redshift clusters can either be in a EC2 Classic subnet or VPC subnet.

EC2-Classic

  1. Navigate to your Redshift Cluster settings: Redshift Dashboard > Clusters > Select Your Cluster

  2. Click on the Cluster Security Groups

  3. Open the Cluster Security Group

  4. Click on “Add Connection Type”

EC2-VPC

  1. Navigate to your Redshift Dashboard > Clusters > Select Your Cluster

  2. Click on the VPC Security Groups

  3. Select the “Inbound” tab and then “Edit”

  1. Navigate back to your Redshift Cluster Settings: Redshift Dashboard > Clusters > Select Your Cluster

  2. Select the “Cluster” button and then “Modify”

  3. Make sure the “Publicly Accessible” option is set to “Yes”

VPCs keep servers inaccessible to traffic from the internet. With VPC, you’re able to designate specific web servers access to your servers. In this case, you will be whitelisting the to read from your data warehouse.

If your cluster has a field called Cluster Security Groups, proceed to

Or if your cluster has a field called VPC Security Groups, proceed to

Choose Connection Type CIDR/IP and authorize the to read into your Redshift Port

Allow Secoda to read into your Redshift Port using the .

You can find more information on that .

Redshift Metadata Extracted
WLM
new user
here
EC2 Classic
EC2 VPC
here
Secoda IPs
Secoda IPs
Secoda IP addresses