AWS DevOps Agent to Amazon EventBridge to AWS Lambda durable functions escalation

AWS DevOps Agent → Amazon EventBridge Rule → AWS Lambda

Event-driven escalation using DevOps Agent events routed via EventBridge to Lambda durable functions with callback-based human acknowledgment

AWS DevOps Agent emits events to the Amazon EventBridge default event bus whenever an investigation lifecycle state changes. This pattern captures 'Investigation Failed' and 'Investigation Timed Out' events using an EventBridge rule.
The EventBridge rule routes matching events to a Lambda durable function that orchestrates the escalation workflow: parsing the DevOps Agent event, creating an incident ticket in DynamoDB, and paging on-call personnel via SNS.
The durable function pauses execution using create_callback(), incurring no compute charges while waiting for human acknowledgment. On-call responders acknowledge by clicking a link in the notification email.
If no acknowledgment is received within a configurable timeout (default 15 minutes), the incident is marked as unacknowledged and the workflow completes.
The incident ticket creation and notification steps are designed as extensible integration points, allowing customers to replace DynamoDB and SNS with external services such as Jira, ServiceNow, PagerDuty, or Opsgenie.

< 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/lambda-durable-investigation-escalation

Deploy

Note: Lambda durable functions have limited regional availability. Please check the AWS documentation for current regional support.sam buildsam deploy --guided --region us-east-1


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Ridhima Bhalerao

Technical Account Manager and a Serverless Enthusiast at AWS

Follow on LinkedIn