Skip to content

cloudbees-io/lambda-invoke-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

CloudBees action: Invoke AWS Lambda function

Use this action to invoke a function in AWS Lambda serverless architecture. Run code in AWS Lambda without provisioning or managing servers.

Prerequisites

Make sure to initialize the connection using your AWS credentials, by adding the following to your YAML file:

      - name: Configure AWS credentials
        uses: cloudbees-io/configure-aws-credentials@v1
        with:
          aws-access-key-id: ${{ secrets.MY_KEY_ID }}
          aws-secret-access-key: ${{ secrets.MY_SECRET_KEY }}
          aws-region: eu-west-3

Refer to CloudBees action: Configure AWS credentials for more information.

Inputs

Table 1. Input details
Input name Data type Required? Description

function-name

String

Yes

The AWS Lambda function name.

parameters

JSON

No

The input you want to provide to your Lambda function, formatted as JSON data in key/value pairs.

Usage example

In your YAML file, add:

      - name: Invoke AWS lambda function
        id: invokeLambdaFunction
        uses: cloudbees-io/lambda-invoke-function@v1
        with:
          function-name: my-function

License

This code is made available under the MIT license.

References