helloV
helloV

Reputation: 52463

AWS Route53: Get DNS record set creation time

I use Python SDK to delete DNS record sets in Route53. Due to Route53 API throttling, the deletion fails sometimes and the stale DNS record set is building up.

As the DNS record set approaches the 10,000 limit, I want to delete the record sets that were created last year because they are not needed any longer. But I am unable to find the record creation time either using AWS CLI or using Python SDK (Boto3). Is there a way to get the DNS record creation time in Route53 using CLI or SDK?

Upvotes: 9

Views: 3330

Answers (1)

Alessandro Oliveira
Alessandro Oliveira

Reputation: 2216

After analysing the root cause of the problem you are facing, I think it is not specifically related to python or boto3, but it is related to your algorithm and aws route 53 service behavior, you said:

I use Python SDK to delete DNS record sets in Route53. Due to Route53 API throttling, the deletion fails sometimes and the stale DNS record set is building up.

I would recommend you to use a SQS queue as intermediate to delete records from Route53 asynchronously, eventually using exponential backoff and dead letter queues to improve the reliability of your process if you think some deletion is broken by another reason and should be postponed.

Upvotes: 2

Related Questions