GithubHelp home page GithubHelp logo

elasticio / aws-lambda-component Goto Github PK

View Code? Open in Web Editor NEW
0.0 10.0 1.0 649 KB

elastic.io integration component that calls out to AWS Lambda

License: Other

JavaScript 100.00%
aws-lambda elasticio-component ipaas integration

aws-lambda-component's Introduction

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

aws-lambda-component's People

Contributors

a3a3e1 avatar khanzadyan avatar zubairov avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

flowground

aws-lambda-component's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.