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?
asked a month ago24 views
1 Answers
0
Accepted Answer
Alright, figured it out. I had to remove the Region from the request.
answered a month ago
Relevant questions
TXT Records not resolved
asked 3 years agoCan you validate an ACM public certificate using a domain record in a Route 53 private hosted zone?
Accepted Answerasked 4 years agoUnable to ping shortname in private hosted zone
asked 3 years agoRoute 53 domain cname record without hosted zone
Accepted Answerasked 10 months agoAmazon Route 53 hosted zone is not configured correctly
asked 5 months agoMultiple MX records same name with different priority
asked a year ago[aws-sdk-go-v2] Route53: Unable to create NS record for subdomain
asked a year agoHosted zone not configured properly for workmail
asked 10 months agoCreating ALIAS Record for Zone Apex in Route 53
Accepted Answerasked 2 years agoCreating hosted zone records with .NET SDK
Accepted Answerasked a month ago