jckuester / awsweeper

A tool for cleaning your AWS account
Mozilla Public License 2.0
469 stars 45 forks source link

New parameter to set max-retries for api calls #35

Closed mousavian closed 5 years ago

mousavian commented 5 years ago

Terraform's AWS provider supports max-retries option which would be nice if we can set desired value for it.

In my case, when temporary credentials get expired, it gets very very long time for awsweeper to raise the error and exit due to exponentially increasing the delay between the subsequent API calls.

jckuester commented 5 years ago

Thanks for the contribution. Do you think we should set the default lower than 25 (see this issue: https://github.com/terraform-providers/terraform-provider-aws/issues/1209)? How long did you have to wait in your case until the error was raised?