We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dee4d74 commit af7f20cCopy full SHA for af7f20c
modules/postgresql/read_replica.tf
@@ -19,11 +19,10 @@ locals {
19
for x in var.read_replicas : "${var.name}-replica${var.read_replica_name_suffix}${x.name}" => x
20
}
21
// Zone for replica instances
22
- zone = var.zone == null ? data.google_compute_zones.available[0].names[0] : var.zone
+ zone = var.zone == null ? data.google_compute_zones.available.names[0] : var.zone
23
24
25
data "google_compute_zones" "available" {
26
- count = var.zone == null ? 1 : 0
27
project = var.project_id
28
region = var.region
29
0 commit comments