boardrider
boardrider

Reputation: 6185

Schedule Cron expression not valid?

I'm creating an AWS CloudWatch rule, using the Schedule Cron expression: 30 10 * * 2,5 *, namely - every Tuesday and Friday on 10:30 UTC.

However, AWS gives me

There was an error while saving rule Snapshot_EBS_disk.
Details: Parameter ScheduleExpression is not valid..

Any idea what's wrong with my expression?

Upvotes: 4

Views: 2548

Answers (1)

John C
John C

Reputation: 8415

One of day-of-month or day-of-week must be ?. So to make your cron expression valid you would use the following:

30 10 ? * 3,6 *

Also note that Tuesday and Friday are 3 and 6 respectively

Upvotes: 6

Related Questions