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 Answer
1
Accepted Answer

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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions