Search code examples
aws-lambdacronaws-event-bridge

AWS Eventbridge Rejects cron


Why isn't this a valid cron?

13 33 * * ? *

I'm trying to schedule an AWS Lambda function with EventBridge, and it keeps telling me that this is invalid, while this statement is valid:

13 20 * * ? *

Solution

  • The first two number are Minutes then Hours. So you are asking for the time 33:13 which is invalid whereas 20:13 is fine.

    See https://docs.aws.amazon.com/lambda/latest/dg/services-cloudwatchevents-expressions.html