Skip to content

Commit f903ec9

Browse files
committed
add availability type var
1 parent 9e22cb7 commit f903ec9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ resource "google_sql_database_instance" "default" {
3535
pricing_plan = "${var.pricing_plan}"
3636
replication_type = "${var.replication_type}"
3737
database_flags = ["${var.database_flags}"]
38+
availability_type = "${var.availability_type}"
3839
}
3940

4041
replica_configuration = ["${var.replica_configuration}"]

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,8 @@ variable replica_configuration {
143143
type = "list"
144144
default = []
145145
}
146+
147+
variable availability_type {
148+
description = "This specifies whether a PostgreSQL instance should be set up for high availability (REGIONAL) or single zone (ZONAL)."
149+
default = "ZONAL"
150+
}

0 commit comments

Comments
 (0)