# How do I connect to the 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](https://atd-dts.gitbook.io/moped-documentation/dev-guides/how-tos/broken-reference) documentation.
