Creating hosted zone records with .NET SDK

0

I am trying to create hosted zone records (alias, Simple routing, A records) using the .NET SDK ChangeResourceRecordSetsAsync method. My jsonized input for the request (sanitized) is this:

{
  "HostedZoneId": "route 53 hosted zone id",
  "ChangeBatch": {
    "Changes": [
      {
        "Action": {
          "Value": "CREATE"
        },
        "ResourceRecordSet": {
          "Name": "uri that i wish this to appear as",
          "Type": {
            "Value": "A"
          },
          "Region": {
            "Value": "selected region"
          },
          "AliasTarget": {
            "HostedZoneId": "hosted zone id of the api gateway endpoint",
            "DNSName": "api gateway domain name",
            "EvaluateTargetHealth": true
          },
        }
      }
    ]
  }
}

If I include SetIdentifier, I end up with a hosted zone record, but the routing is set to Latency. If I remove SetIdentifier, it complains because it is not there and nothing gets created. Could someone please help me format a request to create a record with Simple routing?

1개 답변
0
수락된 답변

Alright, figured it out. I had to remove the Region from the request.

lxman
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠