Amazon EventBridge Scheduler to AWS Lambda with Dual Dead Letter Queues

Amazon EventBridge Scheduler → AWS Lambda → Scheduler DLQ → Lambda Execution DLQ

Creates an EventBridge schedule to invoke a Lambda function with dual DLQs for comprehensive failure handling

This pattern demonstrates EventBridge Scheduler's failure handling capabilities through dual Dead Letter Queues. One DLQ captures Lambda execution failures (code errors, timeouts), while the other captures scheduler invocation failures (permissions, throttling, resource not found).
The pattern is deployed using the AWS Serverless Application Model (SAM) and includes a Python-based Lambda function that can simulate failures for testing both DLQ paths.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/eventbridge-schedule-to-lambda-dlq-sam-python

Deploy

See the GitHub repo for detailed deployment instructions.


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete --stack-name STACK_NAME

Created by:

Sasidharan Ramasamy

Sasidharan Ramasamy

Technical Account Manager @ AWS with over 10 years of industry experience

Follow on LinkedIn