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.