Skip to content

Commit aeb321f

Browse files
fix dns record
1 parent 3b08ce0 commit aeb321f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cicd/3-app/aiproxy/template.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ Resources:
2626
Name: !Sub "${SubdomainName}.${BaseDomainName}"
2727
Type: A
2828
TTL: 300
29-
ResourceRecords:
30-
- !GetAtt LoadBalancer.DNSName
29+
AliasTarget:
30+
DNSName: !GetAtt LoadBalancer.DNSName # Reference the DNS name of the load balancer
31+
HostedZoneId: Z2FDTNDATAQYW2 # The hosted zone ID for Elastic Load Balancer in us-east-1
3132

3233
LoadBalancer:
3334
Type: AWS::ElasticLoadBalancingV2::LoadBalancer

0 commit comments

Comments
 (0)