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 Antwort
1
Akzeptierte Antwort

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
EXPERTE
Raphael
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen