How to use
- Paste an AWS schedule expression:
cron(…)with six fields,rate(…)orat(…). Thecron( )wrapper is optional. - Pick the schedule's time zone (EventBridge Scheduler) or keep UTC (classic EventBridge rules).
- Check the next 10 runs and the warnings, then copy the Terraform, CloudFormation or CLI snippet.
AWS cron expression format
| # | Field | Values | Wildcards |
|---|---|---|---|
| 1 | Minutes | 0–59 | , - * / |
| 2 | Hours | 0–23 | , - * / |
| 3 | Day of month | 1–31 | , - * ? / L W |
| 4 | Month | 1–12 or JAN–DEC | , - * / |
| 5 | Day of week | 1–7 (1 = Sunday) or SUN–SAT | , - * ? L # |
| 6 | Year | 1970–2199 | , - * / |
One of day-of-month and day-of-week must be ?. L is the last day of the month (or, after a weekday number, the last such weekday), 15W the weekday nearest the 15th, and 2#1 the first Monday of the month.
rate() and at() expressions
rate(value unit) repeats at a fixed interval: the unit is minute, hour or day, singular for 1 and plural above, so rate(1 hour) but rate(2 hours). The interval counts from when the schedule starts, not from the clock. at(yyyy-mm-ddThh:mm:ss) runs once and is supported by EventBridge Scheduler only.
cron(0 * * * ? *) runs on the wall clock: 10:00, 11:00, 12:00 … rate(1 hour) counts from when the schedule starts — created at 10:17 it fires at 11:17, 12:17, 13:17 — so the two never line up. Use cron() when the clock time matters.EventBridge Scheduler vs EventBridge rules
| EventBridge Scheduler | EventBridge rule | |
|---|---|---|
| Time zone | Any IANA zone (DST handled) | UTC only |
| Expressions | cron(), rate(), at() | cron(), rate() |
| Terraform resource | aws_scheduler_schedule | aws_cloudwatch_event_rule |
Differences from Linux cron
One day field must be ?
Linux cron ORs the two day fields when both are set; AWS cannot do that. One of day-of-month and day-of-week must be ? instead: cron(0 12 * * ? *) runs daily at noon, while a schedule with * in both day fields — cron(0 12 * * * *) — is rejected outright.
?. With * in both, cron(0 12 * * * *) is rejected — write cron(0 12 * * ? *) and it runs every day at 12:00.Day-of-week numbers start at 1 for Sunday
So 2-6 is Monday to Friday — not Tuesday to Saturday, as it would be in Linux cron.
Other differences
- Six fields with a trailing year, and no seconds.
- A time repeated by a daylight-saving change runs once, where Linux cron runs it twice.
How the results are verified
AWS cron follows the Quartz expression syntax without seconds, so every cron() preview is checked against org.quartz.CronExpression 2.3.2 with a zero-seconds field, on the examples from the AWS documentation and edge cases such as L, W and #. The AWS-only rules — six fields, the year range, rate() units and daylight-saving behaviour — follow the EventBridge Scheduler documentation.