Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trigger lambda function daily at a given time

I have a lambda function setup and tested via manual triggers. I want this function to run once every day at mid-day.

To achieve this I created a new CloudWatch Events - Schedule trigger with a Schedule expression of cron(0 12 ? * * *).

With the function and trigger enabled, the function was not invoked. What should the correct Schedule expression be?

like image 686
duncanhall Avatar asked Sep 06 '25 03:09

duncanhall


1 Answers

The cron expression was correct. Remember that your AWS region may not be in the same timezone and adjust your expectations accordingly.

like image 60
duncanhall Avatar answered Sep 07 '25 22:09

duncanhall