Sign inSign up

jkizo/lambda

By jkizo

•Updated over 5 years ago

Image
0

941

jkizo/lambda repository overview

⁠LambdaInvoke

Executes a cloud function on aws using their golang SDK.

⁠Direktiv

id: invoke-function
functions:
- id: post
  image: vorteil/lambda
description: "Invokes a cloud function based on the given details"
states:
- id: invoke-cloud
  type: action
  action:
    function: post
    input: .

⁠Input

The following input is needed for the cloud function to be invoked successfully.

{
    "key": .secrets.AWS-KEY,
    "secret": .secrets.AWS-SECRET,
    "region": "us-east-2",
    "function": "helloworld",
    "body": {
        "any": "data"
    }
}

NOTE: The body field is optional.

⁠Output

The output will be the response of the cloud function json marshalled for the ability to jq the response.

⁠Error

In the case that an error is encountered, it will present in the following format:

{
    "errorCode": "com.lambdainvoke.error",
    "errorMsg": "Something went wrong"
}

Tag summary

Content type

Image

Digest

Size

3 MB

Last updated

over 5 years ago

docker pull jkizo/lambda