> For the complete documentation index, see [llms.txt](https://atd-dts.gitbook.io/moped-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://atd-dts.gitbook.io/moped-documentation/dev-guides/how-tos/how-to-connect-to-the-rds-instance.md).

# How do I connect to the RDS instance?

Setup and SSH tunneling to the Moped RDS instance

Moped runs on a PostgreSQL database in AWS, but it is not publicly accessible. It currently lives in a closed (private) network, where only one server has access to it. This server is a virtual machine (EC2 instance) on AWS, and it is carefully placed in the same network and VPC as the database, and it acts as a proxy.

![](https://1420082453-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MIQvl_rKnZ_-wHRdp4J%2F-MOmZ1lTCKinjmwnWRub%2F-MOmaHYXkkuCoSZkBFTg%2FMopedBastion.png?alt=media\&token=1a3c6912-9d36-438f-936f-902830342489)

The Moped Database exists in our unified RDS which also has a read-only, read replica node. You can learn more about access in the [Unified Postgres Database](broken://spaces/-M4Ul-hSBiM-3KkOynqS/pages/d6LVI8L2h9lTmFTgqtSW) documentation.
