Route53: Cannot delete resource record set via AWS Step Functions

0

Hello, I am using a step function (aws-sdk:route53:changeResourceRecordSets) to delete a Route53 record and sometimes I am getting the following error:

[Tried to delete resource record set [name='xxxxxxxxx.some-domain.net.', type='A', set-identifier='i-xxxxxxxx'] but the rdata provided is invalid] (Service: Route53, Status Code: 400, Request ID: zzzzzzzzzzzzz)

Even though the record is there and I can verify it from the AWS console it does not work half of the time. Sometimes I can delete it immediately after creation, but sometimes I have to try again after 1-2 hours or even a day (always via the step functions).

I have no problems deleting it manually from the console.

1개 답변
0

Hi, @algert.

Have you checked the following articles?
This article explains that the same error message occurs when the ResourceRecord has unmatched values in the delete action.

https://aws.amazon.com/premiumsupport/knowledge-center/troubleshoot-route53-resource-record/?nc1=h_ls

An error occurred (InvalidChangeBatch) when calling the ChangeResourceRecordSets operation: Tried to delete resource record set [name='a.domain.com.', type='A'] but the rdata provided is invalid.

You're performing the DELETE action for a resource record set, but the value for ResourceRecord doesn't match the value in the existing resource record set.

Check and update the ResourceRecord value in your configuration file. Then, try to delete the resource record set again.

profile picture
전문가
iwasa
답변함 일 년 전
  • Hello iwasa, yes I have already checked. The data is valid since when I am running the same step function again after sometime with the same input, it will work.

    My use case is not very complex. I create a record (A record) and I try to delete it with a step function. Sometimes it does not work, but re-running the step function after some time (same input) will delete the record.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠