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.

algert
已提問 1 年前檢視次數 369 次
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
已回答 1 年前
  • 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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南