AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume.
With Lambda, you can run code for virtually any type of application or backend service - all with zero administration. Just upload your code and Lambda takes care of everything required to run and scale your code with high availability. You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app.
Plugin Version 1.3.3.2020102201 Revised on December 19, 2018
Setting up the plugin configuration
Plugin configurations are sets of parameters that apply across some or all of the plugin procedures. They reduce repetition of common values, create predefined sets of parameters for end users, and store credentials securely. Each configuration has a unique name that is automatically entered in designated parameters in the procedures.
Input
-
In the Main Menu, click
to open the Plugin Manager. -
Find the EC-AWS-Lambda row.
-
Click Configure to open the AWS Lambda Configurations page.
-
Click Create Configuration. Enter the following information and click OK.
Remember that you may need to create additional configurations later.
Parameter | Description |
---|---|
Configuration Name |
Name of the plugin configuration. |
Description |
Description for the plugin configuration. |
AWS region |
AWS region. For list of available regions visit AWS Regions page. |
Credential |
|
Plugin procedures
CreateLambdaFunction
This procedure creates AWS Lambda function using AWS SDK.
Input
-
In the Main Menu, click
to open the Plugin Manager. -
Got to the EC-AWS-Lambda plugin.
-
Go to the CreateLambdaFunction procedure.
-
Enter the following parameters:
Parameter | Description |
---|---|
Configuration name |
Name of the configuration to be used. URL and credentials are retrieved from the given configuration. A Configuration defines connection details and can be created by going to plugin configuration page. |
Function name |
AWS Lambda function name to create. To get information about AWS Lambda function visit AWS Console. |
Runtime name |
Runtime name for the Lambda function. For example: "python2.7" without quotes. |
Path to deployment package zip file |
Zip file with lambda function code. Could be created manually or exported from AWS Lambda console. |
Lambda handler |
Handler that is being used for Lambda function invocation. For example, if your file is "lambda_file" and lambda function is "main", handler should be "lambda_file.main" without quotes. |
AWS role |
ARN of AWS role that should be used for AWS Lambda execution. This role should have sufficient permissions. |
RunLambdaFunction
This procedure runs AWS Lambda Function
Input
-
In the Main Menu, click
to open the Plugin Manager. -
Got to the EC-AWS-Lambda plugin.
-
Go to the RunLambdaFunction procedure.
-
Enter the RunLambdaFunction parameters:
Parameter | Description |
---|---|
Configuration name |
Name of the configuration to be used. URL and credentials are retrieved from the given configuration. A Configuration defines connection details and can be created by going to plugin configuration page. |
Function name |
AWS Lambda function name to invoke. To get information about AWS Lambda function visit AWS Console. |
Function parameters |
Parameters in JSON format to be passed to AWS Lambda function. These parameters will be available through event object. |
Success criteria |
Result that should be returned by lambda function to finish procedure with success status. If "Is regexp?" is checked, value of this field will be used as regexp. |
Is regexp? |
If checked, "Success criteria" field will be used as regexp. |
Release notes
EC-AWS-Lambda 1.3.0
-
"Is regexp?" and "Success criteria" parameters have been added to RunLambdaFunction procedure.
EC-AWS-Lambda 1.2.4
-
Request Payload coding has been changed to UTF-8 for RunLambdaFunction procedure.
EC-AWS-Lambda 1.2.1
-
Switched from DefaultClient to BuildClient for CreateLambdaFunction and RunLambdaFunction procedures.