Configure CloudWatch to invoke the Lambda functions - AWS SDK for JavaScript

Help us improve the AWS SDK for JavaScript version 3 (V3) documentation by providing feedback using the Feedback link, or create an issue or pull request on GitHub.

The AWS SDK for JavaScript V3 API Reference Guide describes in detail all the API operations for the AWS SDK for JavaScript version 3 (V3).

Configure CloudWatch to invoke the Lambda functions

To configure CloudWatch to invoke the Lambda functions:

  1. Open the Functions page on the Lambda console.

  2. Choose the Lambda function.

  3. Under Designer, choose Add trigger.

  4. Set the trigger type to CloudWatch Events/EventBridge.

  5. For Rule, choose Create a new rule.

  6. Fill in the Rule name and Rule description.

  7. For rule type, select Schedule expression.

  8. In the Schedule expression field, enter a cron expression. For example, cron(0 12 ? * MON-FRI *).

  9. Choose Add.

    Note

    For more information, see Using Lambda with CloudWatch Events.