Skip to content

Commit

Permalink
fix: FQDN detection when using an existing ALB (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
legoscia authored Dec 11, 2023
1 parent f983fd8 commit 50ee855
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/github-separate/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ module "atlantis" {
valueFrom = try(module.secrets_manager["github-webhook-secret"].secret_arn, "")
},
]
fqdn = module.alb.dns_name
}

service = {
Expand Down
3 changes: 1 addition & 2 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
locals {
# Atlantis
atlantis_url = "https://${try(coalesce(
try(var.atlantis.fqdn, null),
module.alb.route53_records["A"].fqdn,
try(var.atlantis.fqdn, module.alb.route53_records["A"].fqdn, null),
module.alb.dns_name,
), "")}"

Expand Down

0 comments on commit 50ee855

Please sign in to comment.