Once you have configured the AWS Lambda permissions, you can run an AWS Lambda function.
To run a Lambda function, complete the following steps.
Select the utility
To select the AWS Lambda trigger utility:
- In the top right of any screen, navigate to New and then click New Workflow.
- From the filters along the top, click Utility.
- From the list of packages, select AWS Lambda Trigger and click on Setup Workflow.
Provide credentials
To enter your AWS credentials:
- For Authentication choose the method to authenticate with AWS:
- For IAM User authentication, enter the AWS Access Key, AWS Secret Key, and Region of AWS to use.
- For IAM Role authentication, enter the Region of AWS and (optional) AWS Role ARN to use.
- Click Test Authentication to confirm connectivity to AWS using these details.
- When successful, at the bottom of the screen click Next.
Configure the Lambda function
To configure the Lambda function:
- Under Function ARN enter the ARN for the Lambda function to call.
- (Optional) Under Qualifier enter a specific version of the Lambda function to call. (Or leave this as
$LATEST
to always run the latest version of the function.) - (Optional) Under Payload enter a minimized (compact) form of any JSON payload to pass to the Lambda function. (Leave this as an empty JSON object
{}
if you have nothing to pass to the Lambda function.) - Under Invocation Type select how you would like call the Lambda function:
- Use Synchronously to use synchronous invocation. With this approach, the response body and headers include details about the response, including errors.
- Use Asynchronously to use asynchronous invocation. With this approach, AWS queues events and they could be skipped or processed more than once.
Run the Lambda function
You can now run the Lambda function.
- At the bottom of the screen, click Run to run the function once, immediately.
- Click Schedule & Run to scheduled the function to run hourly, daily, weekly, or monthly.