Kotaimen / awscfncli

Friendly AWS CloudFormation CLI
MIT License
59 stars 12 forks source link

Retry mechanism with exponential backoff on throttling errors #88

Closed KotMeow closed 4 years ago

KotMeow commented 4 years ago

Currently when running large amounts of stacks in parallel cloudformation likes to throw throttling errors and it's not properly handled when running 'stack sync' as we might get plenty false negatives or wrong results for example:

Solution is retry mechanism on methods that throws Rate exceeded errors. If it fails after given number of retires it will fail as usual.

This handling of rate exceeded errors is crucial as we are getting them constantly in our CI/CD

Kotaimen commented 4 years ago

Hi @KotMeow,

I need to run some smoke test and finalize on versioning/packaging to before I unleash this into Pypi release pipeline, thanks!