
## Create an AWS Lambda trigger

URL: https://docs.atlan.com/product/integrations/automation/aws-lambda/how-tos/create-an-aws-lambda-trigger

> Once you have configured the [AWS Lambda permissions](/product/integrations/automation/aws-lambda/how-tos/set-up-aws-lambda), you can run an AWS Lambda function.

Once you have configured the [AWS Lambda permissions](https://docs.atlan.com/llms/governance/integrations/set-up-aws-lambda/llms.txt), you can run an AWS Lambda function.

To run a Lambda function, complete the following s

teps.

## Select the utility

To select the AWS Lambda trigger utility:

1. In the top right of any screen, navigate to **New** and then click **New Workflow**.
2. From the filters along the top, click **Utility**.
3. From the list of packages, select **AWS Lambda Trigger** and click on **Setup Workflow**.

## Provide credentials

To enter your AWS credentials:

1. For _Authentication_ choose the method to authenticate with AWS:
 - For [**IAM User** authentication](https://docs.atlan.com/llms/governance/integrations/set-up-aws-lambda/llms.txt), enter the _AWS Access Key_, _AWS Secret Key_, and _Region_ of AWS to use.
 - For [**IAM Role** authentication](https://docs.atlan.com/llms/governance/integrations/set-up-aws-lambda/llms.txt), enter the _Region_ of AWS and (optional) [_AWS Role ARN_](https://docs.atlan.com/llms/governance/integrations/set-up-aws-lambda/llms.txt) to use.
2. Click **Test Authentication** to confirm connectivity to AWS using these details.
3. When successful, at the bottom of the screen click **Next**.

## Configure the Lambda function

To configure the Lambda function:

1. Under _Function ARN_ enter the ARN for the Lambda function to call.
2. (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.)
3. (Optional) Under _Payload_ enter a minimized (compact) form of any [JSON payload](https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html#API_Invoke_RequestBody) to pass to the Lambda function. (Leave this as an empty JSON object `{}` if you have nothing to pass to the Lambda function.)
4. Under _Invocation Type_ select how you would like call the Lambda function:
 - Use **Synchronously** to use [synchronous invocation](https://docs.aws.amazon.com/lambda/latest/dg/invocation-sync.html). With this approach, the response body and headers include details about the response, including errors.
 - Use **Asynchronously** to use [asynchronous invocation](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html). 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.

---
