-
Notifications
You must be signed in to change notification settings - Fork 398
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
lambda.py invokes update_function_configuration() and afterwards update_function_code() without checking Configuration.State and Configuration.LastUpdateStatus fields in between #830
Comments
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Jan 30, 2022
Lambda - Wait before updating SUMMARY Updated lambda module to wait for State = Active & LastUpdateStatus = Successful based on https://aws.amazon.com/blogs/compute/coming-soon-expansion-of-aws-lambda-states-to-all-functions/ Fixes #830 ISSUE TYPE Bugfix Pull Request COMPONENT NAME module: lambda ADDITIONAL INFORMATION Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Alina Buzachis <None>
patchback bot
pushed a commit
that referenced
this issue
Jan 30, 2022
Lambda - Wait before updating SUMMARY Updated lambda module to wait for State = Active & LastUpdateStatus = Successful based on https://aws.amazon.com/blogs/compute/coming-soon-expansion-of-aws-lambda-states-to-all-functions/ Fixes #830 ISSUE TYPE Bugfix Pull Request COMPONENT NAME module: lambda ADDITIONAL INFORMATION Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Alina Buzachis <None> (cherry picked from commit ab4bda2)
patchback bot
pushed a commit
that referenced
this issue
Jan 30, 2022
Lambda - Wait before updating SUMMARY Updated lambda module to wait for State = Active & LastUpdateStatus = Successful based on https://aws.amazon.com/blogs/compute/coming-soon-expansion-of-aws-lambda-states-to-all-functions/ Fixes #830 ISSUE TYPE Bugfix Pull Request COMPONENT NAME module: lambda ADDITIONAL INFORMATION Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Alina Buzachis <None> (cherry picked from commit ab4bda2)
tremble
pushed a commit
that referenced
this issue
Jan 30, 2022
Lambda - Wait before updating SUMMARY Updated lambda module to wait for State = Active & LastUpdateStatus = Successful based on https://aws.amazon.com/blogs/compute/coming-soon-expansion-of-aws-lambda-states-to-all-functions/ Fixes #830 ISSUE TYPE Bugfix Pull Request COMPONENT NAME module: lambda ADDITIONAL INFORMATION Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Alina Buzachis <None> (cherry picked from commit ab4bda2) Co-authored-by: Andreas Jonsson <[email protected]>
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Jan 31, 2022
[PR #857/ab4bda24 backport][stable-2] Lambda - Wait before updating This is a backport of PR #857 as merged into main (ab4bda2). SUMMARY Updated lambda module to wait for State = Active & LastUpdateStatus = Successful based on https://aws.amazon.com/blogs/compute/coming-soon-expansion-of-aws-lambda-states-to-all-functions/ Fixes #830 ISSUE TYPE Bugfix Pull Request COMPONENT NAME module: lambda ADDITIONAL INFORMATION
abikouo
pushed a commit
to abikouo/community.aws
that referenced
this issue
Oct 24, 2023
…lections#830) ec2_key - remove unused wait and wait_timeout parameters SUMMARY Remove unused wait and wait_timeout parameters from the ec2_key module. These have had no effect since Ansible 2.5 and were deprecated in release 1.0.0. ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_key ADDITIONAL INFORMATION See also: ansible/ansible#64230 Reviewed-by: Alina Buzachis <None>
abikouo
pushed a commit
to abikouo/community.aws
that referenced
this issue
Oct 24, 2023
Lambda - Wait before updating SUMMARY Updated lambda module to wait for State = Active & LastUpdateStatus = Successful based on https://aws.amazon.com/blogs/compute/coming-soon-expansion-of-aws-lambda-states-to-all-functions/ Fixes ansible-collections#830 ISSUE TYPE Bugfix Pull Request COMPONENT NAME module: lambda ADDITIONAL INFORMATION Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Alina Buzachis <None> This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections@ab4bda2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
lambda.py invokes
update_function_configuration()
here andafterwards update_function_code()
here without checkingConfiguration.State
andConfiguration.LastUpdateStatus
fields in between. If lambda function was updated in scope of the first call an error similar to below one is created during the second call:Issue Type
Bug Report
Component Name
lambda
Ansible Version
AWS SDK versions
Configuration
OS / Environment
macOS Big Sur 11.6
Steps to Reproduce
aws lambda get-function --function-name YOUR_FUNCTION --query 'Configuration.[State, LastUpdateStatus]'
will returnExpected Results
update_function_configuration()
call:Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: