Launch Workspace

AWS EventBridge & CloudWatch Cron Generator

Build valid cron(min hrs dom mon dow yr) and rate(val unit) schedules for AWS Lambda, ECS Tasks, and Step Functions.

AWS EventBridge Rule (CloudFormation & Terraform)

Configure schedule and executable to generate copy-paste deployment code.

# Terraform AWS EventBridge Rule
resource "aws_cloudwatch_event_rule" "scheduled_task" {
  name                = "scheduled-task"
  description         = "Scheduled cron trigger for scheduled-task"
  schedule_expression = "cron(0 9 * * 1-5 *)"
}

# Target trigger
resource "aws_cloudwatch_event_target" "lambda_target" {
  rule      = aws_cloudwatch_event_rule.scheduled_task.name
  target_id = "TriggerLambda"
  arn       = "arn:aws:lambda:us-east-1:123456789012:function:my-function"
}
Dialect:
6 fields or rate()
Plain EnglishWeekday

Every weekday (Monday through Friday) at 12:00 PM

Runs every weekday (monday through friday) at 12:00 pm. Evaluated according to AWS cron specifications.

Popular Presets:

Frequently Asked Questions

Everything you need to know about Cron expressions, syntax rules, and platform nuances.

How is AWS EventBridge Cron syntax different from Linux Cron?

AWS EventBridge requires 6 fields in the format cron(Minutes Hours Day-of-month Month Day-of-week Year). You must specify ? in either Day of Month or Day of Week, and include a Year field (1970-2199). Alternatively, AWS supports rate(Value Unit) expressions.

What is the rate() expression format in AWS EventBridge?

rate() expressions provide simple periodic intervals, e.g. "rate(1 minute)", "rate(5 minutes)", "rate(2 hours)", or "rate(7 days)". Singular units (minute, hour, day) are used for 1, and plural units for values greater than 1.