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 ?

preguntada hace 2 años341 visualizaciones
1 Respuesta
1
Respuesta aceptada

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
EXPERTO
Raphael
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas