Skip to content

Commit

Permalink
fix: adds missing A records
Browse files Browse the repository at this point in the history
  • Loading branch information
timbru31 committed Dec 17, 2024
1 parent 4f5732d commit f82dd3c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,26 @@ resources:
MinimumProtocolVersion: TLSv1.2_2018
- Ref: AWS::NoValue

FrontendAliasRecord:
Type: AWS::Route53::RecordSet
Properties:
HostedZoneId: ${env:HOSTED_ZONE_ID}
Name: ${env:FRONTEND_URL_WITHOUT_HTTPS}
Type: A
AliasTarget:
DNSName: !GetAtt FrontendDistribution.DomainName
HostedZoneId: Z2FDTNDATAQYW2

BackendAliasRecord:
Type: AWS::Route53::RecordSet
Properties:
HostedZoneId: ${env:HOSTED_ZONE_ID}
Name: ${env:BACKEND_URL_WITHOUT_HTTPS}
Type: A
AliasTarget:
DNSName: !GetAtt BackendDistribution.DomainName
HostedZoneId: Z2FDTNDATAQYW2

OAC:
Type: AWS::CloudFront::OriginAccessControl
Properties:
Expand Down

0 comments on commit f82dd3c

Please sign in to comment.