From d5210d599fead5325d20dd44b61e041e9a3ee42f Mon Sep 17 00:00:00 2001 From: Nathalie Date: Fri, 9 Aug 2024 16:33:54 +0200 Subject: [PATCH] ensure dns_keys output freshness (#2495) Co-authored-by: Julio Castillo --- modules/dns/main.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/dns/main.tf b/modules/dns/main.tf index e76856a6f5..3c3f2c0654 100644 --- a/modules/dns/main.tf +++ b/modules/dns/main.tf @@ -162,6 +162,9 @@ data "google_dns_keys" "dns_keys" { count = try(var.zone_config.public.dnssec_config.state, "off") != "off" ? 1 : 0 managed_zone = local.managed_zone.id project = var.project_id + depends_on = [ + google_dns_managed_zone.dns_managed_zone + ] } resource "google_dns_record_set" "dns_record_set" {