> For the complete documentation index, see [llms.txt](https://tutorial.specian.co.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tutorial.specian.co.uk/devops/aws/rds.md).

# RDS

We are going to use [Aurora Serverless](https://aws.amazon.com/rds/aurora/serverless/). We will pay only for the resources we use and it will scale up or down automatically.

Search for `RDS` in `Services`:

![](https://2559875260-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRxZ2gbXvMdM70TAFz%2F-LrFPlcoJR9bh3K56NJp%2F-LrFQSG3FyLjHdUTopZL%2Fimage.png?alt=media\&token=f4007f14-3371-41cd-aa53-6b159003ef93)

Click `Databases` and `Create database`:

![](https://2559875260-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRxZ2gbXvMdM70TAFz%2F-LrFPlcoJR9bh3K56NJp%2F-LrFQq1LssU5CMYZi4xG%2Fimage.png?alt=media\&token=b2346abc-a59a-46be-b782-5271252040bd)

Scroll down and you find the "Serverless" option:

![](https://2559875260-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRxZ2gbXvMdM70TAFz%2F-LrFPlcoJR9bh3K56NJp%2F-LrFR-xsjV0FiNQlwl0K%2Fimage.png?alt=media\&token=001a38f5-3cb8-451e-a8b4-ef293b5bba6c)

There are a few important limitations to the serverless version of Aurora:

* You can't give an Aurora Serverless DB cluster a public IP address. This means you can't access it from TablePlus (or similar) from your computer.
* The resources have to be in the same VPC to access the database (this is why we need the NAT).
* You can't turn on [Amazon RDS Performance Insights](https://docs.aws.amazon.com/en_pv/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights).
* It is compatible only with PostgreSQL version `10.7`. We need to reflect this to our local setup for development. `10.7` is not available on Docker Hub but `10` should work fine.\
  `docker run -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=bookapp -d -p 5432:5432 postgres:10`
