Connect to Redshift

Sigma supports secure connections to Amazon Redshift.

This document explains how to connect your organization to an Amazon Redshift warehouse.

📘

For information about Sigma feature compatibility with Amazon Redshift connections, see Region, warehouse, and feature support.

Requirements

In your Sigma organization:

In AWS:

  • You must have access to an Amazon Redshift data warehouse with a configured cluster with a node size of ra3.4xlarge or larger.

Configure Amazon Redshift

Complete the following steps in the AWS Management Console before you add an Amazon Redshift connection in your Sigma organization.

  1. Modify your Amazon Redshift cluster to be publicly accessible and assign an Elastic IP address to connect to it.

  2. Create a security group, then add Sigma’s IP addresses to the inbound and outbound rules of the security group. Obtain the IP addresses from the connection configuration page in the Sigma UI. See Add Sigma IPs to the allowlist.

  3. Attach the security group to your Amazon Redshift cluster.

  4. Create a new Amazon Redshift user to act as the service account for connection to your Sigma organization and grant this user USAGE privileges on all relevant schemas in the Redshift cluster and SELECT grants on all relevant tables within those schemas. Configure this user to have the same privileges on any additional tables that may be added to the schema. For documentation on granting privileges, see GRANT in the Amazon Redshift Database Developer Guide.
    Example SQL statement:

    CREATE USER your_sigma_service_account_name password ‘a_secure_password’; 
    GRANT USAGE ON SCHEMA your_schema_name TO your_sigma_service_account_name;
    GRANT SELECT ON ALL TABLES IN SCHEMA your_schema_name TO your_sigma_service_account_name;
    ALTER DEFAULT PRIVILEGES IN SCHEMA your_schema_name
    GRANT SELECT ON TABLES TO your_sigma_service_account_name;
    
  5. [optional] If you want to leverage write access features such as CSV upload, materialization, input tables, and warehouse views, create a dedicated schema that Sigma write-back features can use to write data to. Grant CREATE privileges on that schema to your user, and grant SELECT, INSERT, UPDATE, DELETE on all tables in that schema. Configure your user to have the same privileges on any additional tables that may be added to the schema.

    GRANT USAGE, CREATE ON SCHEMA your_write_schema_name TO your_sigma_service_account_name;
    GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA your_write_schema_name TO your_sigma_service_account_name;
    ALTER DEFAULT PRIVILEGES IN SCHEMA your_write_schema_name
    GRANT SELECT, INSERT, UPDATE, DELETE ON TABLES TO your_sigma_service_account_name;
    

Create an Amazon Redshift connection in Sigma

To create an Amazon Redshift connection, perform the following steps in the Sigma UI:

Add a connection and specify connection details

  1. Click the user icon at the top right of your screen.
    The user icon is usually composed of your initials.

  2. In the drop-down menu, select Add connection. The Add new connection page appears.

  3. In the Connection Details section, specify the following:

    NameEnter a Name for the new connection.
    TypeSelect the Redshift tile.

Specify your connection credentials

In the Connection Credentials section, fill out the required fields:

  1. In the Host field, enter the value of the Endpoint field in the General Information screen of your Redshift cluster.
    Example: cluster.abcd.us-west-1.redshift.amazonaws.com

  2. In the Port field, enter your cluster's port number. You can find your port number in the properties of your Amazon Redshift cluster under Database configurations.
    Example: 5439

  3. In the User and Password fields, enter the username and password of the Amazon Redshift user you created to connect to your Sigma organization. See Step 4 in Configure Amazon Redshift.

  4. In the Database field, enter your cluster's database name.

  5. [optional] Turn on the Enable TLS toggle to enable TLS encryption on your connection.

  6. [optional] Turn on the SSH Tunnel toggle to connect through SSH, then enter the Tunnel host and Tunnel port. See Connect through SSH.

Next, see Configure write access and Configure connection features for additional options. Or, if you are finished configuring your connection, click Create at the top right to create your connection.

Configure write access

Write access is necessary for the following features:

📘

Input tables are in Public Beta on Redshift connections. See Intro to input tables.

Configuring write access requires you to set up a dedicated schema in Amazon Redshift that Sigma can use to write data and grant the necessary privileges on that schema to the service account. See Step 5 in Configure Amazon Redshift.

  1. To allow write access on this connection, turn on the toggle next to Enable write access.
  2. In the Write schema field, enter the name of the dedicated schema you created for Sigma to store write-back data.

Next, see Configure connection features for additional options. Or, if you are finished configuring your connection, click Create at the top right to create your connection.

Configure connection features

In the Connection Features section, specify the following:

  1. In the Connection timeout field, specify the amount of time, in seconds, that Sigma should wait for the query to return results before timing out. The default in 120 seconds. The maximum is 600 seconds (10 minutes).

  2. [optional] If you do not want Sigma to automatically make column names from the data source more readable, turn off the Use friendly names toggle. For example, with Use friendly names turned on, a database column ORDER_NUMBER appears as Order Number.

Finish creating your connection

After you specify all the parameters of the connection, click Create.

  1. Click Create at the top right of the screen to create your connection. Sigma displays a connection summary on the screen.

  2. Click Browse Connection, then click Add permission to grant connection access for users in your organization. See Data permissions.
    The Permission summary on the connection, showing that no users have access to this connection yet.

  3. Use the navigation in the left panel to explore the schemas and tables in your connection.
    The browse connection view, showing a table available through the connection


Related resources