Register an Amazon Redshift Connection
Permissions
The user registering the connection must have the permissions below.
APPLICATION_ADMINImmuta permissionThe Amazon Redshift user registering the connection must be a superuser or have the following Amazon Redshift privileges:
CREATEDBCREATE USERsys:secadminroleUSAGEon all databases and schemas that contain data you want to registerThe following privileges
WITH GRANT OPTIONon objects registered in Immuta:DELETEINSERTSELECTTRUNCATEUPDATE
For descriptions and explanations of privileges Immuta needs to enforce policies and maintain state in Amazon Redshift, see the Amazon Redshift viewless integration reference guide.
Create the database user
Create a new database user in Redshift to serve as the Immuta system account. Immuta will use this system account continuously to crawl the connection.
Grant this account the following Redshift privileges:
USAGEon all databases and schemas that contain data you want to registerCREATE ROLEsys:secadminroleThe following privileges
WITH GRANT OPTIONon objects registered in Immuta:DELETEINSERTSELECTTRUNCATEUPDATE
Register the connection
In your Amazon Redshift environment, create an Immuta database that Immuta can use to connect to your Amazon Redshift instance to register the connection and maintain state with Amazon Redshift.
Having this separate database for Immuta prevents custom ETL processes or jobs deleting the database you use to register the connection, which would break the connection.
In Immuta, click Data and select Connections in the navigation menu.
Click the + Add Connection button.
Select the Amazon Redshift tile.
Enter the host connection information:
Display Name: This is the name of your new connection. This name will be used in the API (
connectionKey), in data source names from the host, and on the connections page.Hostname: URL of your Amazon Redshift instance.
Port: Port configured for Amazon Redshift.
Database: The Redshift database you created for Immuta. All databases in the host will be registered.
Enter the username and password of the Amazon Redshift database user you created above.
Click Save connection.
Map users
Requirement: USER_ADMIN Immuta permission
Map Amazon Redshift usernames to each Immuta user account to ensure Immuta properly enforces policies.
The instructions below illustrate how to do this for individual users, but you can also configure user mapping in your IAM connection on the app settings page.
Click People and select Users in the navigation menu.
Click the user's name to navigate to their page and scroll to the External User Mapping section.
Click Edit in the Redshift User row.
Enter the user's Redshift username.
Click Save.
Last updated
Was this helpful?

