Skip to content

Commit

Permalink
Add external_urls output
Browse files Browse the repository at this point in the history
  • Loading branch information
vipin-dfe committed Mar 10, 2025
1 parent 57262ca commit 8c0daf0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions terraform/domains/environment_domains/output.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
output "external_urls" {
value = flatten([
for zone_name, zone_values in var.hosted_zone : [
for domain in zone_values["domains"] : (domain == "apex" ?
"https://${zone_name}" :
"https://${domain}.${zone_name}"
)
]
])
}

0 comments on commit 8c0daf0

Please sign in to comment.