Skip to main content
Knowledge Base

How to add more RDS databases?

Answer

_This message was extracted from a discussion that originally took place in Gruntwork Community Slack. Names and URLs have been removed where appropriate_ **From a customer** Hi Gruntwork! We have successfully setup an RDS instance running Postgres using the data-storage/rds module. Now we would like to setup additional databases to live on the same server. We have already done this by hand in our dev environment and are looking to IoC the databases for create on deploy for our other accounts. Unfortunately I am not immediately seeing a good way to accomplish that. How can we codify multiple databases in our rds instance?

**From a grunt** If I understand your question correctly, I think you’re looking for the [Terraform PostgreSQL provider](https://registry.terraform.io/providers/cyrilgdn/postgresql/latest/docs). In the `provider` block you can point to your RDS instance, and you can use the `postgresql_database` resource to actually created database instances.