Skip to content

Commit 2271a54

Browse files
committed
updates example to set multi_az
1 parent 191e0f4 commit 2271a54

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

examples/minimal/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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"
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
}

examples/minimal/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
1117
variable "name_prefix" {
1218
description = "A string to prepend to names of resources created by this example"
1319
}

0 commit comments

Comments
 (0)