Skip to content

Instantly share code, notes, and snippets.

@Leonti
Created June 22, 2020 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Leonti/8b9dae5b90573a0a454ed8f72d2760e0 to your computer and use it in GitHub Desktop.
Save Leonti/8b9dae5b90573a0a454ed8f72d2760e0 to your computer and use it in GitHub Desktop.
Route53RecordSetGroup:
Type: AWS::Route53::RecordSetGroup
Properties:
HostedZoneName: !Sub '${DomainName}.'
RecordSets:
- Name: !Ref DomainName
Type: A
AliasTarget:
DNSName: !GetAtt CloudFrontDistribution.DomainName
EvaluateTargetHealth: false
HostedZoneId: Z2FDTNDATAQYW2
- Name: !Sub 'www.${DomainName}'
Type: A
AliasTarget:
DNSName: !GetAtt CloudFrontDistributionRedirect.DomainName
EvaluateTargetHealth: false
HostedZoneId: Z2FDTNDATAQYW2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment