AWS Route53 recordset delete Error - values provided do not match the current values

0 votes

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.

Oct 4, 2018 in AWS by eatcodesleeprepeat
• 4,670 points
351 views

1 answer to this question.

0 votes

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"
answered Oct 4, 2018 by Priyaj
• 56,940 points

Related Questions In AWS

0 votes
2 answers

How do I define the principal for an AWS policy statement?

Check with AWS Policy Documentations once, rest ...READ MORE

answered Jun 25, 2018 in AWS by Cloud gunner
• 4,280 points

edited Jun 26, 2018 by Cloud gunner 111 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 56,940 points
302 views
0 votes
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 56,940 points
678 views
0 votes
2 answers
0 votes
1 answer

DynamoDB : The provided key element does not match the schema

The following applies to the Node.js AWS ...READ MORE

answered Nov 13, 2018 in AWS by Priyaj
• 56,940 points
3,755 views