By using AWS re:Post, you agree to the Terms of Use
/Creating hosted zone records with .NET SDK/

Creating hosted zone records with .NET SDK


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

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

answered a month 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