-
Notifications
You must be signed in to change notification settings - Fork 396
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
iam_role_info jittered backoff #748
Conversation
plugins/modules/iam_role.py
Outdated
@AWSRetry.jittered_backoff() | ||
def _list_policies(connection): | ||
paginator = connection.get_paginator('list_policies') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately the decorator needs to stay outside the function here. (but switching to jittered_backoff is generally a good idea)
The retry decorator we use isn't clever enough to delve into the innards or build_full_results and do what you'd expect with aws_retry. (I did look into it it's a rather complex web of calls deep in boto3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
SUMMARY
Sometimes some rate limiting exceptions on the lookups still cause failures, I've switched the
iam_role_info
tojittered_backoff
in a similar vein to:#324
ISSUE TYPE
COMPONENT NAME
iam_role_info