Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 887
boardrider Avatar asked Sep 06 '25 03:09

boardrider


1 Answers

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

like image 101
John C Avatar answered Sep 07 '25 23:09

John C