diff --git a/modules/mysql/read_replica.tf b/modules/mysql/read_replica.tf index d0885cd2..2732471c 100644 --- a/modules/mysql/read_replica.tf +++ b/modules/mysql/read_replica.tf @@ -23,7 +23,7 @@ locals { } data "google_compute_zones" "available" { - count = var.zone == null ? 0 : 1 + count = var.zone == null ? 1 : 0 project = var.project_id region = var.region } diff --git a/modules/postgresql/read_replica.tf b/modules/postgresql/read_replica.tf index 653c8569..03432672 100644 --- a/modules/postgresql/read_replica.tf +++ b/modules/postgresql/read_replica.tf @@ -23,7 +23,7 @@ locals { } data "google_compute_zones" "available" { - count = var.zone == null ? 0 : 1 + count = var.zone == null ? 1 : 0 project = var.project_id region = var.region }