Executes a cloud function on aws using their golang SDK.
id: invoke-function
functions:
- id: post
image: vorteil/lambda:v2
description: "Invokes a cloud function based on the given details"
states:
- id: invoke-cloud
type: action
action:
function: post
input: jq(.)
The following input is needed for the cloud function to be invoked successfully.
input:
key: jq(.secrets.AWS-KEY)
secret: jq(.secrets.AWS-SECRET)
region: "us-east-2"
function: "helloworld"
body:
any: "data"
NOTE: The body field is optional.
The output will be the response of the cloud function json marshalled for the ability to jq the response.
In the case that an error is encountered, it will present in the following format:
{
"errorCode": "com.lambdainvoke.error",
"errorMsg": "Something went wrong"
}
Content type
Image
Digest
Size
3 MB
Last updated
about 5 years ago
docker pull vorteil/lambda