> 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/two-way-sync/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/QoLG7plts8RK5T9PMg3I" 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/OpKMLDNKKuBN6TOMTZxG" 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/oDjT9ZvlOULWPj2gB2Q2" 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/gW68gcZSqfte4IW0gI5V" 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/WtisCNpQmZWu8Z4PAEXS" %}
[Access a Private AWS RDS Instance via a Jumpbox](/two-way-sync/connectors/setup-options/ssh-tunneling/access-a-private-aws-rds-instance-via-a-jumpbox.md)
{% endcontent-ref %}
