Scheduling with EventBridge Scheduler

Run tasks every hour, every weekday at 9 a.m., or once at a specific time.

1 min read

EventBridge Scheduler invokes a target on a schedule. It supports:

  • Rate expressions: rate(1 hour), rate(15 minutes)
  • Cron expressions: cron(0 9 ? * MON-FRI *), which means 09:00 every weekday
  • One-time schedules: at(2026-12-31T23:59:00)
  • Time zones, so 9 a.m. means 9 a.m. local time, even across daylight-saving changes
  • Flexible time windows to spread load, plus retries and a DLQ

Reading AWS cron

AWS cron has six fields: minutes hours day-of-month month day-of-week year. One of day-of-month or day-of-week must be ?.

ExpressionRuns
cron(0 9 ? * MON-FRI *)09:00 Monday–Friday
cron(30 2 1 * ? *)02:30 on the 1st of every month
cron(0/15 * * * ? *)Every 15 minutes

Try it

Terminal
# Send NoteSnap users a daily digest at 8:00 New York time
aws scheduler create-schedule \
  --name daily-digest \
  --schedule-expression "cron(0 8 * * ? *)" \
  --schedule-expression-timezone "America/New_York" \
  --flexible-time-window Mode=OFF \
  --target '{
    "Arn": "arn:aws:lambda:us-east-1:123456789012:function:send-digest",
    "RoleArn": "arn:aws:iam::123456789012:role/scheduler-invoke-role",
    "Input": "{\"type\": \"daily\"}"
  }'

The schedule assumes RoleArn to invoke the target, so that role needs lambda:InvokeFunction on the function.

Tip

Scheduler also has universal targets: it can call almost any AWS API directly, like stopping dev EC2 instances every evening, with no Lambda code at all.

Key takeaways

  • Scheduler supports rate, cron, and one-time schedules with time zones.
  • AWS cron has six fields, and one day field must be '?'.
  • Schedules use an IAM role to invoke their targets.

Check your understanding

Pick an answer to see the explanation.

  1. 1. What does cron(0 9 ? * MON-FRI *) mean?