From 6f96f0af3cf119e890060cbefa60da5aca0ab438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taneli=20Lepp=C3=A4?= Date: Tue, 19 Jul 2022 11:08:13 +0200 Subject: [PATCH] Fixed issue with missing project reference in Cloud DNS data source when creating a public zone. --- modules/dns/main.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/dns/main.tf b/modules/dns/main.tf index c2b567d2..3eec6036 100644 --- a/modules/dns/main.tf +++ b/modules/dns/main.tf @@ -103,8 +103,9 @@ resource "google_dns_managed_zone" "non-public" { } data "google_dns_managed_zone" "public" { - count = var.zone_create ? 0 : 1 - name = var.name + count = var.zone_create ? 0 : 1 + project = var.project_id + name = var.name } resource "google_dns_managed_zone" "public" {