Menu
Amazon Simple Email Service
Developer Guide

Part 8: Configure Triggers in Amazon CloudWatch

After you validate that the Lambda function is working properly, you can use Amazon CloudWatch to schedule the function to run every day. Each time the Lambda function runs, you will receive an email that contains a link to a web page. The web page shows how many bounce and complaint notifications have arrived since the function last ran.

To configure trigger conditions in Amazon CloudWatch

  1. Sign in to the AWS Management Console and open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.

  2. In the column on the left, under Events, choose Rules.

  3. Choose Create rule.

  4. Under Event Source, choose Schedule.

  5. For Fixed rate of, choose 1 Day.

  6. Under Targets, choose Add target.

  7. For Function, choose the Lambda function you created in Part 6: Create an AWS Lambda Function, and then choose Configure details.

  8. Under Rule definition, for Name, type a name for the rule, and then choose Create rule.