serverless-patterns icon indicating copy to clipboard operation
serverless-patterns copied to clipboard

New Serverless Pattern - Add Lambda Durable Functions - Human Approval Pattern

Open agawanea opened this issue 2 weeks ago • 0 comments

Issue #, if available: https://github.com/aws-samples/serverless-patterns/issues/2875

Description of changes: This PR adds a new serverless pattern: Lambda Durable Functions - Human-in-the-Loop Approval Pattern

This pattern demonstrates a cost-effective human approval workflow using AWS Lambda Durable Functions. The workflow pauses execution for up to 24 hours while waiting for human approval via email, without incurring compute charges during the wait period.

Testing: Pattern has been fully tested and deployed in us-east-2 region with successful validation of:

  • 24-hour timeout handling
  • Email notifications with working approve/reject links
  • DynamoDB TTL cleanup after expiration
  • HTML response pages with proper UTF-8 encoding
  • Callback resumption using boto3 send_durable_execution_callback_success API

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

agawanea avatar Dec 03 '25 18:12 agawanea