79182803

Date: 2024-11-12 21:50:51
Score: 1
Natty:
Report link

You need to add both hosted zones in template enter image description here

CloudFrontDNSRecord:
    Type: 'AWS::Route53::RecordSet'
    Properties:
      HostedZoneId: !Ref HostedZoneId
      Type: A
      AliasTarget:
        DNSName: !GetAtt myCloudFrontDistribution.DomainName
        HostedZoneId: Z2FDTNDATAQYW2  # Fixed CloudFront Hosted Zone ID

and Always try to add hardcoded values, test it, if it works update it with dynamic variables and attributes, that will help you to debug much faster.

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Fedi Bounouh