Connectivity
Savant accesses your Redshift from two IP addresses:
35.188.163.165
34.122.126.216
If your network is configured to only allow access from certain IPs, include these in your whitelist.
Redshift Setup
These steps take you through getting the necessarily Redshift information for your Savant connection, and setting up user permissions for Savant in Redshift.
Get the Redshift properties
Open the Redshift console
In the left menu, click Clusters
Select the cluster you want to connect to with Savant
Click Properties
In the Connection details pane, click Copy to get the endpoint details
Separate the port and remove the preceding colon (:) from the host string
Save the endpoint details for later
Allow Savant to Connect
If you have security setup for Redshift to control the inbound traffic, complete the following steps:
In the Redshift console, click Clusters
Select the cluster you want to connect to with Savant
Click Properties
Scroll down to the Network and security section
In the VPC security group field, click the security group to open it
Save the security group ID
In the Security Groups window, click Inbound rules
The security group you clicked in the previous view should be pre-selected here
Click Edit inbound rules
In the Edit Inbound rules window, create custom TCP rules for each of Savant's IPs in your region:
Select Redshift in the drop-down menu
Enter your Redshift port number (from Redshift properties section above)
Enter the Savant IP address (from Connectivity section above)
Click Add rule
Create Redshift User
To connect as a limited user, create a Redshift user for Savant:
Connect to Redshift using a SQL client tool
Create a user based on your authentication type
For password authentication, execute the following query to create a user:
CREATE USER savant PASSWORD <password>; |
For IAM authentication, we recommend that you create a user without any password and execute the following query:
CREATE USER savant PASSWORD disable; |
Grant the savant user privileges to access all tables in a particular schema by executing the following query:
GRANT USAGE ON SCHEMA schema_name TO savant;
GRANT SELECT ON ALL TABLES IN SCHEMA schema_name TO savant;
|
If you plan to use Savant as destination and to create output tables on your behalf, execute the following query to grant the savant user the needed privileges:
GRANT CREATE, TEMPORARY ON DATABASE <database> TO savant;
GRANT ALL ON SCHEMA schema_name to savant;
GRANT ALL ON ALL TABLES IN SCHEMA schema_name TO savant;
|
CREATE allows the user to create new schemas in the database, and TEMPORARY allows the user to create temporary tables while using the database
Save the limited user’s credentials for later
Getting Started in Savant
Once you’ve completed the steps above, follow these steps in Savant:
Go to the Systems page and click Add System
Select the Redshift connector and click Next
Enter your system information and credentials
Use the info from the Redshift properties section above for server and port
Use the info from the Create Redshift User section above for database, username and password
Click Use SSL
Click Authenticate and then Confirm
You can now create Redshift datasets in Savant!