> Markdown version of https://opspane.dev/cron/aws-eventbridge/ for AI agents and readers: the same text, without navigation or the interactive tool.
>
> The tool computes its result with JavaScript in the browser, so this file holds the reference text, worked examples and FAQ. Open the page to run it on your own input.
>
> Answer endpoint for agents: the same URL parameters on https://opspane.dev/cron/aws-eventbridge/answer.md return the computed result as Markdown, without JavaScript, e.g. https://opspane.dev/cron/aws-eventbridge/answer.md?expr=cron(0%209%20%3F%20*%20MON-FRI%20*)&tz=Europe%2FBerlin

# AWS EventBridge Cron

Validate AWS EventBridge cron and rate expressions, see next run times in UTC and generate Terraform, CloudFormation or AWS CLI snippets.

## Quick answer

- `cron(minutes hours day-of-month month day-of-week year)`: six fields, a year at the end and no seconds.
- One day field must be `?`: `cron(0 12 * * ? *)` runs every day at 12:00, while `cron(0 12 * * * *)` is rejected.
- Day of week is 1–7 with 1 = Sunday, so `2-6` is Monday to Friday.
- EventBridge rules run in UTC; EventBridge Scheduler takes any IANA time zone and also accepts one-time `at()` schedules.

## How to use

1. Paste an AWS schedule expression: `cron(…)` with six fields, `rate(…)` or `at(…)`. The `cron( )` wrapper is optional.
2. Pick the schedule's time zone (EventBridge Scheduler) or keep UTC (classic EventBridge rules).
3. 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.

AWS follows Quartz here: one of day-of-month and day-of-week must be `?`. 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.

## FAQ

### Why does an AWS cron expression have six fields?

AWS cron is cron(minutes hours day-of-month month day-of-week year). Compared with Linux cron it adds a year field at the end (use * for every year), and it has no seconds field.

### Why is cron(0 12 * * * *) rejected?

AWS does not allow * in both day-of-month and day-of-week. Put ? in one of them: cron(0 12 * * ? *) runs every day at 12:00.

### How do I run an EventBridge schedule in my time zone?

Use EventBridge Scheduler and set the schedule's time zone (ScheduleExpressionTimezone, e.g. Europe/Berlin). Classic EventBridge rules always run in UTC, so you would have to convert the hours yourself.

### What happens on daylight saving changes?

With a time zone set, EventBridge Scheduler skips a run whose time does not exist when clocks spring forward, and runs only once when a time repeats as clocks fall back. The warnings above name the affected dates for your zone.

### What is the difference between rate() and cron()?

rate(5 minutes) repeats at a fixed interval counted from when the schedule starts, so its times depend on when you created it. cron() pins clock times, such as 09:00 on weekdays.

### Can I schedule a single run with EventBridge?

Yes, EventBridge Scheduler accepts a one-time expression such as at(2026-12-31T23:30:00), evaluated in the schedule's time zone. Classic EventBridge rules only accept cron() and rate().

## Related tools

- [Cron Expression Converter](https://opspane.dev/cron/translate/): Convert one schedule to crontab, Quartz, AWS EventBridge, GitHub Actions, Kubernetes and systemd — with next run times for each.
- [Quartz Cron Expression](https://opspane.dev/cron/quartz/): Explain and build Quartz and Spring @Scheduled cron expressions — 6 or 7 fields, L, W, # and ? — with next run preview.
- [Cron Expression Explainer](https://opspane.dev/cron/explainer/): Understand any cron expression in plain English, with timezone-aware next run times and warnings for schedules that never fire.
