Skip to content

elastic.io integration component that calls out to AWS Lambda

License

Notifications You must be signed in to change notification settings

flowground/aws-lambda-component

 
 

Repository files navigation

CircleCI

aws-lambda-component

Description

An integration component that calls out to Amazon AWS Lambda API.

Requirements

Environment variables

None required.

Credentials

The component requires the following credentials to authenticate with the AWS services:

  • AWS Access Key - this is your Access Key ID when you created the AWS account
  • AWS Access Secret - this is your Secret access key given to you during the key creation

These keys are displayed only once, just after the creation of the credentials in AWS. To generate new ones follow the instructions given at Getting Your Credentials page.

Triggers

This component has no trigger functions. This means it will not be accessible to select as a first component during the integration flow design.

Actions

Invoke a lambda function

This action will invoke a AWS Lambda function. It has following configuration parameters:

image

Please refer to the AWS Lambda documentation for more information about the parameters.

Incoming JSON can be adjusted using the JSONata Expression field. Please make sure result of evaluation is a valid JSON.

Action supports returning JSON value as result.

If invocation was successful then action tries to parse resulting payload as JSON and if parsing was successful then action emits a new message with the resulting JSON as body.

If JSON parsing of the payload after successful invocation fails then action emits the message with body equal to AWS.Response, like this:

{
  "StatusCode": 200,
  "Payload": "result from the lambda invocation"
}

If LogType was set to Tail then the last 4 KB of the log will be returned with the response and will be logged out to component log standard output (and visible in the platform log)

Known issues

  • Invocation Type DryRun is not supported - make no sense in the context

License

Apache-2.0 © elasticio

About

elastic.io integration component that calls out to AWS Lambda

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%