Skip to content

You are viewing documentation for Immuta version 2022.3.

For the latest version, view our documentation for Immuta SaaS or the latest self-hosted version.

Configure Redshift Integration

This page illustrates how to configure the Redshift integration in Immuta. For an overview of the integration, see the Redshift Overview documentation.

For instructions on configuring Redshift Spectrum, see the Redshift Spectrum section.

Redshift

Prerequisites

  • A Redshift cluster with an RA3 node. You must use a Redshift RA3 instance type because Immuta requires cross-database views, which are only supported in Redshift RA3 instance types.
  • For automated installations, the credentials provided must be a Superuser or have the ability to create databases and users and modify grants.

Add the Integration

  1. Click the App Settings icon in the left sidebar.
  2. Click Native Integrations in the left panel.
  3. Click the +Add Native Integration button and select Redshift from the dropdown menu.
  4. Complete the Host and Port fields.
  5. Enter an Initial Database from your Redshift integration for Immuta to use to connect.
  6. Enter an Immuta Database. This is a new database where all secure schemas and Immuta created views will be stored.

    Redshift Config Modal

  7. Opt to check the Enable Impersonation box and customize the Impersonation Role name as needed. This will allow users to natively impersonate another user.

  8. Set up the connection Automatically or Manually.

    Immuta requires temporary, one-time use of credentials with specific privileges.

    When performing an automated installation, Immuta requires temporary, one-time use of credentials with the following privileges:

    • CREATE DATABASE
    • CREATE USER
    • REVOKE ALL PRIVILEGES ON DATABASE
    • GRANT TEMP ON DATABASE
    • MANAGE GRANTS ON ACCOUNT

    These privileges will be used to create and configure a new IMMUTA database within the specified Redshift instance. The credentials are not stored or saved by Immuta, and Immuta doesn’t retain access to them after initial setup is complete.

    You can create a new account for Immuta to use that has these privileges, or you can grant temporary use of a pre-existing account. By default, the pre-existing account with appropriate privileges is a Superuser. If you create a new account, it can be deleted after initial setup is complete.

    Alternatively, you can create create the IMMUTA database within the specified Redshift instance manually using the Manual Setup option.

    Select Automatic and enter your Username and Password.

    Required Privileges

    The specified role used to run the bootstrap needs to have the following privileges:

    • CREATE DATABASE
    • CREATE USER
    • REVOKE ALL PRIVILEGES ON DATABASE
    • GRANT TEMP ON DATABASE
    • MANAGE GRANTS ON ACCOUNT
    1. Select Manual and download both of the bootstrap scripts.
    2. Run the bootstrap script (initial database) in the Redshift Initial Database.
    3. Run the bootstrap script (Immuta database) in the new Immuta Database in Redshift.
    4. Choose your authentication method, and enter the information of the newly created account.
  9. Click Test Redshift Connection.

  10. Once the credentials are successfully tested, click Save.

  11. Click Confirm.

Redshift Spectrum

Allow Immuta to create secure views of your external tables through one of these methods:

For an overview of the integration, see the Redshift Overview documentation.

Prerequisites

Use an Existing Database

  1. Click the App Settings icon in the left sidebar.
  2. Click Native Integrations in the left panel.
  3. Click the +Add Native Integration button and select Redshift from the dropdown menu.
  4. Complete the Host and Port fields.
  5. Enter an Initial Database from your Redshift integration for Immuta to use to connect.
  6. Enter the name of the database you created the external schema in as the Immuta Database. This database will store all secure schemas and Immuta-created views.

    Redshift Config Modal

  7. Opt to check the Enable Impersonation box and customize the Impersonation Role name as needed. This will allow users to natively impersonate another user.

  8. Select Manual and download both of the bootstrap scripts. The specified role used to run the bootstrap needs to have the following privileges:

    • ALL PRIVILEGES ON DATABASE for the database you configure the integration with, as you must manage grants on that database.
    • CREATE USER
    • GRANT TEMP ON DATABASE
  9. Run the bootstrap script (Immuta database) in the Redshift database that contains the external schema.

  10. Choose your authentication method, and enter the credentials from the bootstrap script for the Immuta_System_Account.

  11. Click Test Redshift Connection.

  12. Once the credentials are successfully tested, click Save and Confirm.

Create a New Immuta Database

  1. Click the App Settings icon in the left sidebar.
  2. Click Native Integrations in the left panel.
  3. Click the +Add Native Integration button and select Redshift from the dropdown menu.
  4. Complete the Host and Port fields.
  5. Enter an Initial Database from your Redshift integration for Immuta to use to connect.
  6. Enter an Immuta Database. This is a new database where all secure schemas and Immuta created views will be stored.

    Redshift Config Modal

  7. Opt to check the Enable Impersonation box and customize the Impersonation Role name as needed. This will allow users to natively impersonate another user.

  8. Select Manual and download both of the bootstrap scripts. The specified role used to run the bootstrap needs to have the following privileges:

    • ALL PRIVILEGES ON DATABASE for the database you configure the integration with, as you must manage grants on that database.
    • CREATE DATABASE
    • CREATE USER
    • GRANT TEMP ON DATABASE
  9. Run the bootstrap script (initial database) in the Redshift Initial Database.

  10. Run the bootstrap script (Immuta database) in the new Immuta Database in Redshift.
  11. Choose your authentication method, and enter the credentials from the bootstrap script for the Immuta_System_Account.
  12. Click Test Redshift Connection.
  13. Once the credentials are successfully tested, click Save and Confirm.

Then, add your external tables to the Immuta database.

Edit a Redshift Integration

  1. Click the App Settings icon in the left sidebar.
  2. Navigate to the Native Integrations section and click the down arrow next to the Redshift Integration.
  3. Edit the field you want to change. Note any field shadowed is not editable, and the integration must be disabled and re-installed to change it.
  4. Enter Username and Password.

    Immuta requires temporary, one-time use of credentials with specific permissions.

    When performing edits to an integration, Immuta requires temporary, one-time use of credentials of a Superuser or a user with the following permissions:

    • Create Databases
    • Create users
    • Modify grants

    Alternatively, you can download the Edit Script and run it in Redshift.

  5. Click Validate Credentials.

  6. Click Save.
  7. Click Confirm.

Remove a Redshift Integration

  1. Click the App Settings icon in the left sidebar.
  2. Navigate to the Native Integrations section and click the down arrow next to the Redshift Integration.
  3. Click the checkbox to disable the integration.
  4. Enter the username and password that were used to initially configure the integration and click Validate Credentials.
  5. Click Save.
  6. Click Confirm.