Amazon Lambda

The Amazon Lambda modules allow you to watch, invoke, list, and retrieve the functions, layers, and layer versions in your Amazon Lambda account.

Getting Started with Amazon Lambda

Prerequisites:

The module dialog fields that are displayed in bold (in the Integromat scenario, not in this documentation article) are mandatory!

Connecting Amazon Lambda to Integromat

To connect your Amazon Lambda account to Integromat you need to obtain the API Key from your Amazon Lambda account and insert it in the Create a connection dialog in the Integromat module.

1. Log in to your Amazon Lambda account.

2. Click your Account Name > My Security Credentials > Access keys (access key ID and secret access key) > Create New Access Key.

thupxhKtL3.gif

3. Click Show Access Key to display the Access Key ID and Secret Access Key. Copy and save the provided keys in a safe place.

amazonlamda2.png

4. Go to Integromat and open the Amazon Lambda module's Create a connection dialog.

JCocmueKQj.gif

5. In the Connection name field, enter a name for the connection.

6. In the AWS Key and AWS Secret Key fields, enter the Access Key and Secret Access Key values provided in step 3 above.

7. In the Region field, select your region and click Continue.

The connection has been established.

Assigning Permissions in Your Lambda Account

For Amazon LAmda modules to work, you need to enable permissions in your AWS account.

1. Log in to your AWS account.

2. In the Search Field, enter IAM and in the Features section, select the IAM.

3. Click Create policy.

4. In the Service section, choose Lambda.

5. In the Actions section, click Expand all and select the following minimum permissions required to use the Integromat Lambda functions:

  • ListFunctions
  • GetFunction
  • InvokeFunction

For more information on the actions for Layer or other categories, see the Lambda Functions.

Function

Watch Functions

Triggers when a function is last updated.

ConnectionEstablish a connection to your Amazon Lambda account.
LimitSet the maximum number of functions Integromat should return during one scenario execution cycle.

List Functions

Retrieves a list of all AWS Lambda functions.

ConnectionEstablish a connection to your Amazon Lambda account.
LimitSet the maximum number of functions Integromat should return during one scenario execution cycle.

Get a Function

Gets the information of an AWS Lambda function.

ConnectionEstablish a connection to your Amazon Lambda account.
Function NameSelect the function whose details you want to retrieve.

Invoke a Function

Invoke an AWS Lambda function synchronously or asynchronously.

ConnectionEstablish a connection to your Amazon Lambda account.
Function NameSelect the function name for which you want to invoke a function.
Invocation TypeSelect the invoke type:
  • Request Response: Invoke the function synchronously.
  • Event: Invoke the function asynchronously
  • Dry Run: Validate parameter values and verify that the user or role has permission to invoke the function.
BodyEnter the function details in JSON format which you want to provide to the Lambda function as input. For example, { "key": "value" }.

Layer

Watch Layer Versions

Triggers when a new version of an AWS Lambda layer is created.

ConnectionEstablish a connection to your Amazon Lambda account.
Layer NameSelect the layer name or Amazon Resource Name whose version you want to watch. Enter a name between 
Compatible RuntimeSelect the compatible runtime identifier for the layer. For example, nodejs.
LimitSet the maximum number of layer versions Integromat should return during one scenario execution cycle. The maximum number of layers returned is 50.

List Layers

Retrieves a list of all AWS Lambda layers.

ConnectionEstablish a connection to your Amazon Lambda account.
Layer NameSelect the layer name or Amazon Resource Name whose version you want to watch. Enter a name between 
Compatible RuntimeSelect the compatible runtime identifier for the layer. For example, nodejs.
LimitSet the maximum number of layers Integromat should return during one scenario execution cycle. The maximum number of layers returned is 50.

List Layer Versions

Retrieves a list of the versions of an AWS Lambda layer.

ConnectionEstablish a connection to your Amazon Lambda account.
Layer NameSelect the layer name or Amazon Resource Name whose version you want to watch. 
Compatible RuntimeSelect the compatible runtime identifier for the layer. For example, nodejs.
LimitSet the maximum number of layers versions Integromat should return during one scenario execution cycle. The maximum number of layers returned is 50.

Get a Layer Version

Gets the information of a version of an AWS Lambda layer.

ConnectionEstablish a connection to your Amazon Lambda account.
Layer NameSelect the layer name whose details you want to retrieve.
VersionSelect the layer version.

Other

Make an API Call

Performs an arbitrary authorized API call.

ConnectionEstablish a connection to your Amazon Lambda account.
URL

Enter a path relative to https://lambda.{region}.amazonaws.com. For example:/2015-03-31/functions

For the list of available endpoints, refer to the Amazon Lambda API Documentation.
Method

Select the HTTP method you want to use:

GET
to retrieve information for an entry.

POST
to create a new entry.

PUT
to update/replace an existing entry.

PATCH
to make a partial entry update.

DELETE
to delete an entry.

HeadersEnter the desired request headers. You don't have to add authorization headers; we already did that for you.
Query StringEnter the request query string.
BodyEnter the body content for your API call.

Example of Use - List Functions

The following API call returns all functions from your Amazon Lambda account:

URL:
/31-03-2015/functions

Method:
GET

amazonlamda4.png

Matches of the search can be found in the module's Output under Bundle > Body
In our example, 5 functions were returned:

amazonlamda3.png

 

Popular use cases from our blog

automated-data-collection-crm-illustration

How to Automate Data Collection - Part 5: CRM Systems

automated-data-collection-chatbot-marketing-illustration

How to Automate Data Collection - Part 4: Chatbot Marketing

automated-data-collection-paid-ads-illustration

How to Automate Data Collection - Part 3: Paid Ads

automated-data-collection-email-illustration

How to Automate Data Collection - Part 2: Email Marketing Segmentation

personalized-customer-experience-illustration-integromat

5 Automated Solutions to Personalize Customer Experience

data-collection-automation-forms-pt-1

How to Automate Data Collection - Part 1: Online Forms

Didn’t find what you were looking for?

Expert

Find an expert

We feature a network of 450+ certified partners across the globe who are ready to help

Find an expert

Automate any workflow in your business

Sign up for a free account today. No credit card required, no time limits on free plan.