Problem creating route53 geolocation record using cloudformation

0

I'm able to create a simple A record, but am having trouble creating one of the geolocation routing variety even after looking at AWS' documentation. With my code, I just end up with 2 A records. I have -

vRoute53Records:

  • groupName: 'TestGroup' records:
    • name: 'some-a-record' type: 'A' ttl: '60' values:
      • 'X.X.X.X'
    • name: 'some-geolocation-record' type: 'A' ttl: '60' setId: 'geolocation' values:
      • 'X.X.X.X' GeoLocation:
      • CountryCode = "US"

What am I missing in my CloudFormation code?

Thanks

  • Can you post your CloudFormation code for the resource you're trying to create ?

1 réponse
1
Réponse acceptée

While you didn't provide your template snippet, the following does work:

  rRoute53US:
    Type: AWS::Route53::RecordSet
    Properties:
      Name: !Sub "usonly.${pDomain}"
      SetIdentifier: "US Route"
      ResourceRecords:
        - "1.2.3.4"
      HostedZoneId: !Ref pZoneId
      GeoLocation:
        CountryCode: 'US'
      Type: A
      TTL: 300
AWS
EXPERT
Raphael
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions