Rentrop
Rentrop

Reputation: 21497

What is wrong about this AWS cron ScheduleExpression?

Trying to run the schedule every monday at 8:15, I tried the following expression:

cron(15 8 * * MON *)

I thought this means:

Documentation: http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html

Upvotes: 1

Views: 582

Answers (1)

Zanon
Zanon

Reputation: 30760

Following the same link, your mistake is related with this restriction:

Limits

  • You can't specify the Day-of-month and Day-of-week fields in the same Cron expression. If you specify a value in one of the fields, you must use a ? (question mark) in the other.

So, fix it using:

cron(15 8 ? * MON *)

Upvotes: 3

Related Questions