Aws (RDS)
Connect Erathos to PostgreSQL (Aws).
Last updated
Connect Erathos to PostgreSQL (Aws).
Last updated
To connect to your PostgreSQL RDS instance, in addition to the access credentials, there are specific configurations that need to be made.
To grant the database access to pipeline data stored in S3, you’ll first need to associate an appropriate IAM role with the RDS instance.. First, you’ll need the ARN of the database. To do this, go to RDS and select Databases.
In the Databases table, click on the desired RDS instance to open its main page. Under the Configuration tab, copy the value under Amazon Resource Name (ARN).
In the JSON below:
Replace ARN_RDS
with the ARN value copied in the previous step.
Replace ID_AWS_ACC
with your AWS Account ID.
To create the role that will be used by RDS to authenticate access to S3, navigate to IAM > Roles and selected the action to Create role.
Select Custom trust policy under Trusted entity type and paste the JSON generated in the ARN RDS step into Custom trust policy.
Skip Step 2 and finalize the creation by naming the new role and reviewing the Trust policy JSON during Step 3.
After creating the role, navigate to its main page. Click the Attach policies button and then Create inline policy.
On the loaded page, select the JSON option and paste the policy below, which will allow the database to use the S3 service:
Click Next to proceed to the final stage of policy creation. Once named, click Create policy to complete the process.
Note: Remember the chosen name, as it will be needed in the next step.
Navigate to the main page of the desired instance as explained in Step 1. Under the initial Connectivity & security tab, scroll to the bottom of the page to view the Manage IAM roles table.
Choose the name of the IAM role created in Step 2 and the s3Import feature, then click Add role.
Wait a few moments until the association status changes from Pending to Active.
In your PostgreSQL Database, execute the following query to install the additional functionalities related to Storage:
To connect Erathos to your RDS PostgreSQL (Aws):
Create a New Destination
Go to Settings > Data Warehouse.
Select PostgreSQL.
Fill Out the Form
Input your credentials, such as Host, Database name, User, Password, Port and Region.
Advanced Options (Optional)
Define if the connection should be made through a Static IP or SSH. For more information, plese referer to Databases connection types.
If you need help connecting to your PostgreSQL, reach out to our team at support@erathos.com.