From dda0250c4c807890a29cd3cde4dea5f38bd031cf Mon Sep 17 00:00:00 2001 From: Harald Haas <64084511+haraldhaas@users.noreply.github.com> Date: Thu, 1 Feb 2024 07:53:32 +0100 Subject: [PATCH] Fix dnssec_config issue on state off (#2035) --- modules/dns/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dns/main.tf b/modules/dns/main.tf index 669c143323..7547cec13c 100644 --- a/modules/dns/main.tf +++ b/modules/dns/main.tf @@ -158,7 +158,7 @@ resource "google_dns_managed_zone_iam_binding" "iam_bindings" { } data "google_dns_keys" "dns_keys" { - count = try(var.zone_config.public.dnssec_config, null) != null ? 1 : 0 + count = try(var.zone_config.public.dnssec_config.state, "off") != "off" ? 1 : 0 managed_zone = local.managed_zone.id project = var.project_id }