Create a Redshift Data Source
- From the navigation pane, click Data > Data Sources.
- Click Create a Data Source.
- In the New Data Source window, from Select Data Store, select Amazon Redshift.
- Enter the Host, Port, and name of the Database.
- Enter the Data Source Name.
- Optional: Enter a Description to explain the purpose of the Data Source to others.
- Click Next.
-
Specify the credentials for authenticating to Redshift.
Basic authentication is supported by default. IAM credential propagation might also be available if your administrator has enabled it.
IAM-authenticated connections can be used only for executing jobs and workspaces. Other execution types, such as scheduled jobs and Domino endpoints, require basic authentication.
- If you are using basic authentication, click Test Credentials to validate your username and password.
- Select who can view and use the Data Source in projects.
- Click Finish Setup.
Alternate way to connect to a Redshift Data Source
Prerequisites
- Domino recommends storing your database username and password as environment variables in your project. This lets you access them at runtime without including them in your code.
Python
To establish a connection to Redshift with thepsycopg2 library:
R
To establish a connection to Redshift with the RPostgreSQL library:Next steps
- After connecting to your Data Source, learn how to Use Data Sources.
- Share this Data Source with your collaborators.