AWS EventBridge cron vs rate expressions: which scheduler syntax to use
AWS EventBridge (formerly CloudWatch Events) supports two schedule expression types: cron(fields) for precise wall-clock scheduling and rate(value unit) for simple recurring intervals. Despite the name, EventBridge cron expressions use 6 fields (not 5), adding a year field. The extra field catches people migrating from Linux cron.
How this is calculated
EventBridge cron: cron(0 0 * * ? *) runs at midnight UTC every day. The 6 fields are minute, hour, day-of-month, month, day-of-week, year. The ? placeholder means 'no specific value' and is required in either the day-of-month or day-of-week field (one must be ?, the other a value). EventBridge rate: rate(5 minutes) is equivalent to every-5-minutes cron. Rate expressions only support minute, hour, and day units. For anything more complex than a fixed interval, use cron. EventBridge also supports timezone configuration per rule via the ScheduleExpressionTimezone parameter.
Verdict
Use rate() for simple recurring intervals (every 5 minutes, every hour, every day). Use cron() for wall-clock schedules (midnight UTC, first Monday of the month, 9 AM weekdays). Always specify a timezone on the rule to avoid the UTC surprise.
More Cron scenarios
Frequently asked questions
What is a Cron Job?
What do the 5 parts of a cron expression mean?
What does the asterisk (*) mean in Cron?
How do I run a task every 5 minutes?
Related tools
Unix Timestamp
Convert between Unix timestamps and human-readable dates.
Use tool ➜CHMOD Configurator
Calculate Linux file permissions using checkboxes, octal numbers, or symbolic notation.
Use tool ➜Text Encoding Converter
Convert between Text, Base64, Binary, Hexadecimal, and Decimal formats.
Use tool ➜