File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11module "rds_postgres" {
2- # source = "git::https://github.com/Datatamer/terraform-aws-rds-postgres.git?ref=3.0 .0"
2+ # source = "git::https://github.com/Datatamer/terraform-aws-rds-postgres.git?ref=4.1 .0"
33 source = " ../.."
44
55 identifier_prefix = " ${ var . name_prefix } -example-rds-pg-"
@@ -11,6 +11,7 @@ module "rds_postgres" {
1111 subnet_group_name = " ${ var . name_prefix } _example_subnet_group"
1212 # Network requirement: DB subnet group needs a subnet in at least two Availability Zones
1313 rds_subnet_ids = var. subnet_ids
14+ multi_az = var. multi_az
1415 security_group_ids = module. rds-postgres-sg . security_group_ids
1516 tags = var. tags
1617}
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ variable "subnet_ids" {
88 description = " List of at least 2 subnets in different AZs for DB subnet group"
99}
1010
11+ variable "multi_az" {
12+ default = true
13+ type = bool
14+ description = " Specifies if the RDS instance is multi-AZ."
15+ }
16+
1117variable "name_prefix" {
1218 description = " A string to prepend to names of resources created by this example"
1319}
You can’t perform that action at this time.
0 commit comments