Closed mdavis-xyz closed 1 year ago
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: https://github.com/ansible-collections/amazon.aws/blob/8ea102260d7d98a5f9eb9f0856b01901db198707/plugins/modules/lambda_execute.py#L268 and I suspect the bug will still be there too.
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.
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