0

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 * * ? *
Luke Schoenberger
  • 447
  • 1
  • 5
  • 7
  • 1
    It is because the second position relates to hours and only allows value from 0-23. Hence 33 is invalid. Refer to https://docs.aws.amazon.com/eventbridge/latest/userguide/scheduled-events.html for more info – shyam padia Aug 27 '20 at 19:15

1 Answers1

1

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

GrahamC
  • 91
  • 1
  • 2