2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
What do you mean by not able to create Route53? Are you trying to create hosted zone?
répondu il y a 2 ans
0
To create records for a Route53 Zone you need to use a RecordSet
Example:
Resources:
myDNSRecordHostedZone:
Type: "AWS::Route53::HostedZone"
Properties:
HostedZoneConfig:
Comment: 'My hosted zone for example.com'
Name: 'example.com'
Ec2Instance:
Type: AWS::EC2::Instance
Properties:
ImageId: !FindInMap [RegionMap, !Ref 'AWS::Region', AMI]
myDNSRecord:
Type: AWS::Route53::RecordSet
Properties:
HostedZoneName: !Ref 'myDNSRecordHostedZone' <<<< Passing Reference to R53 Hosted Zone.
Comment: DNS name for my instance.
Name: !Join ['', [!Ref 'Ec2Instance', ., !Ref 'AWS::Region', ., !Ref 'myDNSRecordHostedZone', .]]
Type: A
TTL: 900
ResourceRecords:
- !GetAtt Ec2Instance.PublicIp
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a 7 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 3 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans