> For the complete documentation index, see [llms.txt](https://docs.stacksync.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stacksync.com/connectors/postgres/authorize-postgres/amazon-rds.md).

# 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="/files/Nz1glTUt70jbFAFO1W1t" 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="/files/S6PwmcKajBTeZ5m3ac95" 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="/files/jC1naIiwVuN5L4uBwOCg" 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="/files/KWPt7p8oDMveEvZXVkDi" 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="/pages/KU7fNOLsezBaP7zIjOSF" %}
[Access a Private AWS RDS Instance via a Jumpbox](/connectors/setup-options/ssh-tunneling/access-a-private-aws-rds-instance-via-a-jumpbox.md)
{% endcontent-ref %}
