1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
Hello.
Try changing "HostedZoneId" to "Z2FDTNDATAQYW2" as described in the following document.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-route53.html#w4ab1c23c21c84c11
When you create alias resource record sets, you must specify Z2FDTNDATAQYW2 for the HostedZoneId property, as shown in the following example. Alias resource record sets for CloudFront can't be created in a private zone.
Your template would look something like this
FESCloudFrontDistributionDomainNameRecord:
Type: AWS::Route53::RecordSet # Defines a Route 53 record set
Properties:
# HostedZoneName: !Sub "${CustomDomainName}."
HostedZoneId: !Ref CustomDomainHostedZoneID
Name: !Sub "${CustomDomainName}." # Specifies the record name
Type: A # Specifies the record type as A
AliasTarget:
HostedZoneId: Z2FDTNDATAQYW2
DNSName: !GetAtt FECloudFrontDistribution.DomainName
Contenus pertinents
- demandé il y a un an
- demandé il y a 2 mois
- Réponse acceptéedemandé il y a 7 mois
- demandé il y a 6 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an