Use the terraform-aws-rds module to build a postgres instance.
Used with terragrunt (see examples/terragrunt.hcl)## Providers
Name |
Version |
aws |
n/a |
random |
n/a |
Name |
Description |
Type |
Default |
Required |
aws_region |
n/a |
string |
n/a |
yes |
custom_tags |
Custom tags to add to all the resource |
map(string) |
{} |
no |
db |
List of variable to apply to postgres |
map |
{} |
no |
env |
Environment of the project (production, developement, staging) |
string |
n/a |
yes |
identifier |
A code or identifier to identify this resource |
string |
n/a |
yes |
project |
Project code or identifier |
string |
n/a |
yes |
publicly_accessible |
Bool to control if instance is publicly accessible |
bool |
false |
no |
subnet_ids |
A list of VPC subnet IDs |
list(string) |
[] |
no |
vpc_id |
VPC id to create the db in |
any |
n/a |
yes |
Name |
Description |
db_instance_address |
DB instance address |
db_instance_endpoint |
DB instance endpoint |
db_instance_username |
DB instance username |
db_password |
The password for logging in to the database. |