Part 8: Configure Triggers in Amazon CloudWatch - connect-group/terraform-aws-ses-dashboard GitHub Wiki
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
-
Sign in to the AWS Management Console and open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.
-
In the column on the left, under Events, choose Rules.
-
Choose Create rule.
-
Under Event Source, choose Schedule.
-
For Fixed rate of, choose 1 Day.
-
Under Targets, choose Add target.
-
For Function, choose the Lambda function you created in Part 6: Create an AWS Lambda Function, and then choose Configure details.
-
Under Rule definition, for Name, type a name for the rule, and then choose Create rule.