Skip to content

Commit 078af2c

Browse files
committed
adding multi az components
1 parent 248de42 commit 078af2c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

rds.tf

+3
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ resource "aws_db_instance" "rds" {
88
username = "${var.username}"
99
password = "${var.password}"
1010
port = "${var.port}"
11+
availability_zone = "${var.availability_zone}"
12+
multi_az = "${var.multi_az}"
13+
db_subnet_group_name = "${var.db_subnet_group_name}"
1114
}

variables.tf

+10
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,13 @@ variable "username" {}
1515
variable "password" {}
1616

1717
variable "port" {}
18+
19+
variable "db_subnet_group_name" {
20+
type = "list"
21+
}
22+
23+
variable "availability_zone" {}
24+
25+
variable "multi_az" {
26+
default = true
27+
}

0 commit comments

Comments
 (0)