Avoiding AWS EventBridge ScheduleExpression Deployment Errors
AWS EventBridge Rules (formerly CloudWatch Events) and EventBridge Scheduler use a strict 6-field syntax wrapped in cron(...). The two most common Terraform/CloudFormation failures are omitting the 6th Year field and leaving * in both Day-of-month and Day-of-week instead of placing ? in the unused slot.
Even subtler is numeric day-of-week drift: in AWS EventBridge, 1 is Sunday and 2 is Monday, whereas in POSIX cron 1 is Monday. Using 3-letter names (MON-FRI, SUN, MON#1) eliminates day shifts, and EventBridge supports L (last day), W (nearest weekday), and # (nth weekday of month) natively.
- 6-Field Formatcron(Minutes Hours Day-of-month Month Day-of-week Year) — no Seconds field; Year is required (1970–2199 or *).
- Mandatory ? RuleExactly one of Day-of-month or Day-of-week MUST be ?; using * in both triggers an AWS ValidationException.
- Day Numbering1 = SUN through 7 = SAT (unlike POSIX where 0 = Sun). Prefer MON-FRI names to prevent off-by-one shifts.
Why did AWS reject cron(0 9 * * * *) with ScheduleExpression is not valid?
AWS EventBridge forbids specifying both Day-of-month and Day-of-week with *. Change one of them to ?, such as cron(0 9 * * ? *) for every day at 09:00 UTC.
Does EventBridge Scheduler support timezones unlike legacy EventBridge Rules?
Yes. Legacy EventBridge Rules always run in UTC, whereas EventBridge Scheduler accepts an explicit ScheduleExpressionTimezone (such as America/New_York) with automatic DST handling.
How do I schedule the first Monday or last day of the month in AWS EventBridge?
Use cron(0 9 ? * MON#1 *) for the first Monday at 09:00 and cron(0 0 L * ? *) for the last calendar day of every month.