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" {