Scheduled Job Framework
CloudFormation: EventBridge cron rule triggering Lambda, SQS dead letter queue for failures, CloudWatch alarm on error rate, and SNS alert on DLQ depth.
Scheduled Job Framework — EventBridge, Lambda, SQS, SNS
A complete, observable scheduled job infrastructure on AWS. One CloudFormation stack gives you a cron-triggered Lambda, a dead-letter queue for failed executions, and email alerts when things go wrong.
What's Included
- EventBridge cron rule with configurable schedule expression parameter
- Lambda function (Node.js 22) with structured JSON logging
- SQS dead-letter queue capturing Lambda failure events
- CloudWatch alarm on Lambda error rate (configurable threshold)
- SNS topic + email subscription for DLQ depth alerts
Developer Experience
Swap in your own job logic by editing a single Lambda handler. The schedule expression is a CloudFormation parameter — no template changes needed.
What You Get
A reliable foundation for any recurring workload: data sync, report generation, cache warming, cleanup tasks. Failed executions land in the DLQ automatically.
Requirements
AWS CLI v2 with CloudFormation, Lambda, SQS, SNS, EventBridge, IAM, and CloudWatch permissions. Provide an email address for failure alerts.