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回答
1
承認された回答

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
エキスパート
Raphael
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ