@@ -7,14 +7,15 @@ This repo follows the [terraform standard module structure](https://www.terrafor
77Inline example implementation of the module. This is the most basic example of what it would look like to use this module.
88```
99module "rds_postgres" {
10- source = "git::https://github.com/Datatamer/terraform-rds-postgres.git?ref=0.1 .0"
10+ source = "git::https://github.com/Datatamer/terraform-rds-postgres.git?ref=0.3 .0"
1111 postgres_name = "example_rds_postgres"
1212 parameter_group_name = "example-rds-postgres-pg"
1313 identifier_prefix = "example-rds-"
1414 username = "exampleUsername"
1515 password = "examplePassword"
1616
17- subnet_name = "example_subnet"
17+ subnet_group_name = "example_subnet"
18+ rds_subnet_ids = ["example-subnet-1", "example-subnet-2"]
1819 spark_cluster_sg_ids = ["sg-examplesecuritygroup1", "sg-examplesecuritygroup2"]
1920 tamr_vm_sg_id = "sg-exampletamrsecuritygroup"
2021 vpc_id = "vpc-examplevpcnetworkid"
@@ -48,6 +49,8 @@ This terraform module will create:
4849| spark\_ cluster\_ sg\_ ids | Security group is attached to the ec2 instances of EMR Spark | ` list(string) ` | n/a | yes |
4950| tamr\_ vm\_ sg\_ id | Security group id attached to the tamr vm | ` string ` | n/a | yes |
5051| vpc\_ id | VPC ID for the rds security group | ` string ` | n/a | yes |
52+ | subnet\_ group\_ name | The name of the subnet group to add the RDS instance to | ` string ` | n/a | yes |
53+ | rds\_ subnet\_ ids | List of subnet IDs to add to subnet group | ` list(string) ` | n/a | yes |
5154| additional\_ cidrs | Additional CIDR to connect to RDS Postgres instance | ` list(string) ` | ` [] ` | no |
5255| additional\_ tags | Additional tags to set on the RDS instance | ` map ` | ` {} ` | no |
5356| allocated\_ storage | Allocate storage | ` number ` | ` 20 ` | no |
@@ -66,7 +69,6 @@ This terraform module will create:
6669| security\_ group\_ name | Name for the security group for the rds instance | ` string ` | ` "tamr_rds_sg" ` | no |
6770| skip\_ final\_ snapshot | Skip final snapshot | ` bool ` | ` true ` | no |
6871| storage\_ type | Storage type (e.g. gp2, io1) | ` string ` | ` "gp2" ` | no |
69- | subnet\_ name | The name of the subnet to add the RDS instance to | ` string ` | ` null ` | no |
7072| username | The postgres username | ` string ` | ` "tamr" ` | no |
7173
7274## Outputs
0 commit comments