@@ -7,14 +7,15 @@ This repo follows the [terraform standard module structure](https://www.terrafor
7
7
Inline example implementation of the module. This is the most basic example of what it would look like to use this module.
8
8
```
9
9
module "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"
11
11
postgres_name = "example_rds_postgres"
12
12
parameter_group_name = "example-rds-postgres-pg"
13
13
identifier_prefix = "example-rds-"
14
14
username = "exampleUsername"
15
15
password = "examplePassword"
16
16
17
- subnet_name = "example_subnet"
17
+ subnet_group_name = "example_subnet"
18
+ rds_subnet_ids = ["example-subnet-1", "example-subnet-2"]
18
19
spark_cluster_sg_ids = ["sg-examplesecuritygroup1", "sg-examplesecuritygroup2"]
19
20
tamr_vm_sg_id = "sg-exampletamrsecuritygroup"
20
21
vpc_id = "vpc-examplevpcnetworkid"
@@ -48,6 +49,8 @@ This terraform module will create:
48
49
| spark\_ cluster\_ sg\_ ids | Security group is attached to the ec2 instances of EMR Spark | ` list(string) ` | n/a | yes |
49
50
| tamr\_ vm\_ sg\_ id | Security group id attached to the tamr vm | ` string ` | n/a | yes |
50
51
| 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 |
51
54
| additional\_ cidrs | Additional CIDR to connect to RDS Postgres instance | ` list(string) ` | ` [] ` | no |
52
55
| additional\_ tags | Additional tags to set on the RDS instance | ` map ` | ` {} ` | no |
53
56
| allocated\_ storage | Allocate storage | ` number ` | ` 20 ` | no |
@@ -66,7 +69,6 @@ This terraform module will create:
66
69
| security\_ group\_ name | Name for the security group for the rds instance | ` string ` | ` "tamr_rds_sg" ` | no |
67
70
| skip\_ final\_ snapshot | Skip final snapshot | ` bool ` | ` true ` | no |
68
71
| 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 |
70
72
| username | The postgres username | ` string ` | ` "tamr" ` | no |
71
73
72
74
## Outputs
0 commit comments