-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename execute_lambda SUMMARY In line with the naming guidelines, rename execute_lambda to lambda_execute ISSUE TYPE Feature Pull Request COMPONENT NAME plugins/modules/execute_lambda.py plugins/modules/lambda_execute.py ADDITIONAL INFORMATION Reviewed-by: Joseph Torcasso <None>
- Loading branch information
Showing
6 changed files
with
31 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
minor_changes: | ||
- execute_lambda - the ``execute_lambda`` module has been renamed to ``lambda_execute``, ``execute_lambda`` remains as an alias (https://github.com/ansible-collections/community.aws/pull/1273). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,17 +8,19 @@ | |
|
||
DOCUMENTATION = ''' | ||
--- | ||
module: execute_lambda | ||
module: lambda_execute | ||
version_added: 1.0.0 | ||
short_description: Execute an AWS Lambda function | ||
description: | ||
- This module executes AWS Lambda functions, allowing synchronous and asynchronous | ||
invocation. | ||
- Prior to release 5.0.0 this module was called C(community.aws.execute_lambda). | ||
The usage did not change. | ||
extends_documentation_fragment: | ||
- amazon.aws.aws | ||
- amazon.aws.ec2 | ||
author: "Ryan Scott Brown (@ryansb) <[email protected]>" | ||
- amazon.aws.aws | ||
- amazon.aws.ec2 | ||
author: | ||
- "Ryan Scott Brown (@ryansb) <[email protected]>" | ||
notes: | ||
- Async invocation will always return an empty C(output) key. | ||
- Synchronous invocation may result in a function timeout, resulting in an | ||
|
@@ -72,7 +74,7 @@ | |
''' | ||
|
||
EXAMPLES = ''' | ||
- community.aws.execute_lambda: | ||
- community.aws.lambda_execute: | ||
name: test-function | ||
# the payload is automatically serialized and sent to the function | ||
payload: | ||
|
@@ -82,11 +84,11 @@ | |
# Test that you have sufficient permissions to execute a Lambda function in | ||
# another account | ||
- community.aws.execute_lambda: | ||
- community.aws.lambda_execute: | ||
function_arn: arn:aws:lambda:us-east-1:123456789012:function/some-function | ||
dry_run: true | ||
- community.aws.execute_lambda: | ||
- community.aws.lambda_execute: | ||
name: test-function | ||
payload: | ||
foo: bar | ||
|
@@ -97,12 +99,12 @@ | |
# the response will have a `logs` key that will contain a log (up to 4KB) of the function execution in Lambda | ||
# Pass the Lambda event payload as a json file. | ||
- community.aws.execute_lambda: | ||
- community.aws.lambda_execute: | ||
name: test-function | ||
payload: "{{ lookup('file','lambda_event.json') }}" | ||
register: response | ||
- community.aws.execute_lambda: | ||
- community.aws.lambda_execute: | ||
name: test-function | ||
version_qualifier: PRODUCTION | ||
''' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cloud/aws | ||
|
||
execute_lambda | ||
lambda_execute | ||
lambda_info |