I am trying to delete a failover alias recordset with the following command:
aws route53 change-resource-record-sets \
--hosted-zone-id <my-zone-id> \
--change-batch file://file.json
Contents of json:
{
"Comment": "test-rdc",
"Changes": [
{
"Action": "DELETE",
"ResourceRecordSet": {
"Name": "abc.aws-ab-xyz.abcd.com",
"Type": "A",
"SetIdentifier": "abc-Secondary",
"Failover": "SECONDARY" ,
"AliasTarget": {
"HostedZoneId": "jashkhakh",
"DNSName": "hhhkjhkh",
"EvaluateTargetHealth": false
},
"HealthCheckId": "hhjhkh"
}
}]
}
Error: Tried to delete resource record set [name='abc.aws-ab-xyz.abcd.com.', type='A', set-identifier='abc-Secondary', health check='hhjhkh'] but the values provided do not match the current values
I have verified the entries are correct in my json file.
Specify also the TTL.
I had the same problem in a Cloudformation change, and the problem was difference between TTLs.
https://github.com/ansible/ansible-modules-core/issues/551#issuecomment-70481068
I was able to figure this one out myself. I was missing dualstack prefix form the ELB name in my json file. Looks like it expects the ELB name to be exactly same as what is there in the R53 console. Change from :
"DNSName": "hhhkjhkh"
to
"DNSName": "dualstack.hhhkjhkh"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With