Search code examples
aws-lambdacron

AWS cron expression OK, lambda not triggered


I have set the following cron expression in AWS (CloudWatch trigger).

0 */5 7-12,1pm-11pm ? * MON,TUE,WED,THU,FRI

In expression generator, I get for very similar expresssion (7-23 intead of the hours )

At second :00, every 5 minutes starting at minute :00, every hour between 07am and 23pm, on every Monday, Tuesday, Wednesday, Thursday and Friday, every month as expected.

However, it is not triggered. I don't see anything in the log. The expression is wrong somehow

Why is that? (trigger is enabled of course)

Thanks.


Solution

  • Well, the expression wasn't right.

    It considers minutes only and the */5 confused it too maybe. Not sure about the * at the end.

    0/5 7-23 ? * MON-FRI * - this works

    To debug triggers, there is "Rules" section in the log service, where you can see the next executions.