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

When creating lambda function, retry waiting for IAM role to be propagated #30610

Merged
merged 2 commits into from
Jan 25, 2016

Conversation

kraney
Copy link
Contributor

@kraney kraney commented Jan 25, 2016

When an AWS IAM role is created, it may take some time before it's propagated to all regions. In the meantime, creating a lambda function referencing that role may fail. In salt states that create a role and then immediately create a lambda function, this can lead to errors. Add an exponential backoff retry to cover this case, rather than forcing users to work around in their state files.

See hashicorp/terraform#1885 for more info on the situation that occurs.

@rallytime
Copy link
Contributor

Thanks for this change @kraney. It looks great. I'll grab that final pylint error.

rallytime pushed a commit to rallytime/salt that referenced this pull request Jan 25, 2016
@rallytime rallytime merged commit e10a100 into saltstack:develop Jan 25, 2016
rallytime pushed a commit that referenced this pull request Jan 25, 2016
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

Successfully merging this pull request may close these issues.

2 participants