From 1a018a507b7fd00245fbad862fadc3f1786bd067 Mon Sep 17 00:00:00 2001 From: Marco Londero Date: Mon, 25 Oct 2021 10:48:24 +0100 Subject: [PATCH] Default "zone_id" to empty string for "dns" module --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index d731768..461315b 100644 --- a/main.tf +++ b/main.tf @@ -196,7 +196,7 @@ module "dns" { enabled = module.this.enabled && length(var.zone_id) > 0 ? true : false dns_name = var.dns_subdomain != "" ? var.dns_subdomain : module.this.id ttl = 60 - zone_id = try(var.zone_id[0], var.zone_id) + zone_id = try(var.zone_id[0], "") records = var.cluster_mode_enabled ? [join("", aws_elasticache_replication_group.default.*.configuration_endpoint_address)] : [join("", aws_elasticache_replication_group.default.*.primary_endpoint_address)] context = module.this.context