From e4fb705341586ff789483dbb126f997268f9075d Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Tue, 11 Nov 2025 17:10:24 -0600 Subject: [PATCH] fix: Update lookup logic for Atlantis URL due to variable optional attributes --- main.tf | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/main.tf b/main.tf index cad8d026..48515ba9 100644 --- a/main.tf +++ b/main.tf @@ -1,9 +1,12 @@ locals { # Atlantis - atlantis_url = "https://${try(coalesce( - try(var.atlantis.fqdn, module.alb.route53_records["A"].fqdn, null), - module.alb.dns_name, - ), "")}" + atlantis_url = "https://${try( + coalesce( + var.atlantis.fqdn, + try(module.alb.route53_records["A"].fqdn, null), + module.alb.dns_name, + ), + "")}" } ################################################################################