Skip to content

Commit e805c4a

Browse files
wire up dns
1 parent b4643ac commit e805c4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cicd/3-app/aiproxy/template.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ Resources:
2828
Domain:
2929
Type: AWS::Route53::RecordSet
3030
Properties:
31-
HostedZoneName: !Sub "${BaseDomainName}."
31+
HostedZoneId: !Ref HostedZone
3232
Name: !Sub "${SubdomainName}.${BaseDomainName}"
3333
Type: A
34-
TTL: 300
35-
ResourceRecords:
36-
- 8.8.8.8
34+
AliasTarget:
35+
DNSName: !GetAtt LoadBalancer.DNSName
36+
HostedZoneId: !GetAtt LoadBalancer.CanonicalHostedZoneID
3737

3838
LoadBalancer:
3939
Type: AWS::ElasticLoadBalancingV2::LoadBalancer

0 commit comments

Comments
 (0)