Skip to content

Commit

Permalink
Fix cloudformation load balancer ouput (Sage-Bionetworks-IT#4)
Browse files Browse the repository at this point in the history
We depend on the cloudformation's load balancer exported DNS endpoint
to configure a DNS redirect in organizations-infra repo[1].  The export
name needs to be unique in the account.

[1] https://github.com/Sage-Bionetworks-IT/organizations-infra/blob/master/org-formation/800-redirects/_tasks.yaml
  • Loading branch information
zaro0508 authored Nov 22, 2024
1 parent e17983a commit 6f88b06
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/load_balancer_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,9 @@ def __init__(
self.alb = elbv2.ApplicationLoadBalancer(
self, "AppLoadBalancer", vpc=vpc, internet_facing=True
)
cdk.CfnOutput(self, "dns", value=self.alb.load_balancer_dns_name)
cdk.CfnOutput(
self,
"LoadBalancerDns",
value=self.alb.load_balancer_dns_name,
export_name=f"{construct_id}-dns",
)

0 comments on commit 6f88b06

Please sign in to comment.