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 1
1
module "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"
3
3
source = " ../.."
4
4
5
5
identifier_prefix = " ${ var . name_prefix } -example-rds-pg-"
@@ -11,6 +11,7 @@ module "rds_postgres" {
11
11
subnet_group_name = " ${ var . name_prefix } _example_subnet_group"
12
12
# Network requirement: DB subnet group needs a subnet in at least two Availability Zones
13
13
rds_subnet_ids = var. subnet_ids
14
+ multi_az = var. multi_az
14
15
security_group_ids = module. rds-postgres-sg . security_group_ids
15
16
tags = var. tags
16
17
}
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ variable "subnet_ids" {
8
8
description = " List of at least 2 subnets in different AZs for DB subnet group"
9
9
}
10
10
11
+ variable "multi_az" {
12
+ default = true
13
+ type = bool
14
+ description = " Specifies if the RDS instance is multi-AZ."
15
+ }
16
+
11
17
variable "name_prefix" {
12
18
description = " A string to prepend to names of resources created by this example"
13
19
}
You can’t perform that action at this time.
0 commit comments