-
Notifications
You must be signed in to change notification settings - Fork 342
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_execute doesn't work with function_arn instead of name #1268
Comments
Note that passing the ARN into the name field does seem to work. Even though the docs say not to do it. |
Hi @mdavis-xyz, Thanks for taking the time to open this issue, the module was actually moved to the amazon.aws collection with release 5.0.0 (the ansible.com "latest" docs are tied to the latest version of Ansible rather than the collection) The best place to look for the 'latest' version of the community.aws and amazon.aws collections is Ansible Galaxy: https://galaxy.ansible.com/amazon/aws and https://galaxy.ansible.com/community/aws, with the docs being available on github.io https://ansible-collections.github.io/amazon.aws/branch/stable-5/collections/amazon/aws/index.html https://ansible-collections.github.io/community.aws/branch/stable-5/collections/community/aws/index.html It looks like waiter is still there: amazon.aws/plugins/modules/lambda_execute.py Line 268 in 8ea1022
The module's been renamed from execute_lambda to lambda_execute, as part of a mass-rename in 5.0.0 to try and make our module names more consistent and (hopefully) make modules easier to find in the medium/long term. |
lambda_execute: allow function arn instead of name SUMMARY Fixes #1268 ISSUE TYPE Bugfix Pull Request COMPONENT NAME lambda_execute ADDITIONAL INFORMATION Reviewed-by: Mark Chappell <None>
Summary
The documentation says that I can use either
name
orfunction_arn
forexecute_lambda
. This is not the case currently, because only thename
(possiblyNone
) is passed to the waiter.I found the line of code in my local installation of this module that's causing the issue.
Changing it to:
fixes the issue.
But I can't see that line here in the git repo.
It's not just that this bug has been possibly fixed, but that the whole function waiting for the lambda to be updated is missing from the latest commit.
Was this functionality removed? (That would be surprising.)
The docs say
version 3.6.0
, which is what I'm using.Issue Type
Bug Report
Component Name
execute_lambda
Ansible Version
Collection Versions
AWS SDK versions
(Unsure how meaningful this is because I specify the interpreter on each run with
-e ansible_python_interpreter=$(which python3)
)Configuration
OS / Environment
Amazon Linux 2
Steps to Reproduce
Create a Lambda function named
mylambda
. Update thevars
for your AWS account.Expected Results
The lambda is invoked 3 times.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: