amazon-dynamodb-tools icon indicating copy to clipboard operation
amazon-dynamodb-tools copied to clipboard

AWS API rate exceeded - operations failing blindly

Open Alfaj0r opened this issue 1 year ago • 3 comments

I just ran table_tagger.py against a few hundred DynamoDB tables. The console output made me feel like a real DevOps champion, having logs that every single one of my tables was tagged.

However, I reviewed CloudTrail logs and found that my work had not happened as fatefully as I had thought. Almost half of the calls logged some sort of error... image

Drilling down for all the errors, they are all the same: image image

The script needs to be enhanced so that:

  1. it does not log successes for API calls that were not successfully executed
  2. it does not exceed the rate limits for the AWS API

Alfaj0r avatar Apr 03 '24 21:04 Alfaj0r

Is your requirement for tagging the tables for granular cost in Cost Explorer, if so, there is no longer a need to do this. I'll update the READ ME later this week.

LeeroyHannigan avatar Apr 04 '24 06:04 LeeroyHannigan

Hey @LeeroyHannigan thanks for taking a look. You might be thinking about the available "Resource" extra breakdown in cost-explorer, but that's only good for 2 weeks... image

I want this to run for longer-term analysis too.

Is this what you were thinking about?

Alfaj0r avatar Apr 04 '24 20:04 Alfaj0r

Yes exactly what I was thinking about. We need to take in the throttling for tagging resources, once I have some bandwidth I'll take a look.

LeeroyHannigan avatar Apr 04 '24 20:04 LeeroyHannigan