# Amazon RDS

1. Sign in to the AWS Management Console and open the Amazon RDS console at\
   <https://console.aws.amazon.com/rds/>
2. In the navigation panel, choose **Databases** to display a list of your DB instances.

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2Fz429ngZeVsyZFtMg14rP%2Fimage.png?alt=media&#x26;token=297bc79f-7260-4804-b2e2-92c3509e2d9a" alt="" width="254"><figcaption><p>Navigation panel</p></figcaption></figure>

3. Click on the DB you want to sync.
4. On the **Connectivity & security tab**, copy the endpoint and the port number.

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FhoR9BIhSeWP6gwESlqil%2Fimage.png?alt=media&#x26;token=f6e3e50e-b283-4c04-a930-01c2eedca572" alt="" width="442"><figcaption><p>RDS endpoint and port number</p></figcaption></figure>

5. Then click on the **Configuration** tab and view the **Master username** and **DB name** values. \
   If the DB name is empty as it is the case here, then use **'postgres'** as DB name.\
   The password was set when the database was originally created. Please ask whoever set up the database for the connection password.<br>

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FA2ICwN2fS7TWhrOqriIX%2Fimage.png?alt=media&#x26;token=863146bb-134f-4207-8e55-c1e103b5146d" alt=""><figcaption></figcaption></figure>

5. Use this template for the connection string and replace the element with your values

```
postgresql://USERNAME:YOUR_PASSWORD@ENDPOINT:PORT/DB_NAME
```

7. Paste the connection string into Stacksync

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FH8pBJjNzWrBw5MBUNxzz%2Fimage.png?alt=media&#x26;token=718a8767-5093-4762-bb8d-a6c319cd6268" alt=""><figcaption></figcaption></figure>

If your database is in a **private subnet** and doesn't have any way to access it from internet currently, you can set up a jumpbox / bastion host to allow Stacksync to access your database using this tutorial:

{% content-ref url="../../setup-options/ssh-tunneling/access-a-private-aws-rds-instance-via-a-jumpbox" %}
[access-a-private-aws-rds-instance-via-a-jumpbox](https://docs.stacksync.com/two-way-sync/connectors/setup-options/ssh-tunneling/access-a-private-aws-rds-instance-via-a-jumpbox)
{% endcontent-ref %}
