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,710 points
3,420 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
• 58,020 points

Related Questions In AWS

0 votes
1 answer

Why I saw in the aws s3 glacier vault the size does not match with asw s3 glacier client

Hi, I am not sure, but the client ...READ MORE

answered Jun 29, 2020 in AWS by MD
• 95,460 points
1,042 views
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
• 58,020 points
5,958 views
–1 vote
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
• 58,020 points
5,204 views
0 votes
2 answers
0 votes
1 answer
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
• 58,020 points
32,395 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP