Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RequestLimitExceeded when trying to remove thousands of AMIs #89

Open
stolendog opened this issue Jul 29, 2018 · 1 comment
Open

RequestLimitExceeded when trying to remove thousands of AMIs #89

stolendog opened this issue Jul 29, 2018 · 1 comment

Comments

@stolendog
Copy link
Contributor

I have thousands of AMIs to clean on my AWS account. But because AWS API has some rate limits, I get

botocore.exceptions.ClientError: An error occurred (RequestLimitExceeded) when calling the DeregisterImage operation (reached max retries: 4): Request limit exceeded.

I made a pull request to increase max_attempts for boto3 (default is 4). It uses exponential backoff between API calls when it gets RequestLimitExceeded this way I can remove thousands of AMIs without app exception.

#88

@Viet1612
Copy link

cay thế nhờ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants