Sign inSign up

vorteil/lambda

By vorteil

•Updated about 5 years ago

Image
0

1.5K

vorteil/lambda repository overview

⁠LambdaInvoke

Executes a cloud function on aws using their golang SDK.

⁠Direktiv

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(.)

⁠Input

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.

⁠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

about 5 years ago

docker pull vorteil/lambda