Add L3 construct support for AWS Lambda Durable Execution - the native AWS feature allowing Lambda functions to pause on I/O (e.g., waiting for HTTP responses, timers, or external events) and resume transparently, enabling long-running and stateful serverless workflows without Step Functions overhead.
Motivation
Lambda Durable Execution enables patterns like:
- Multi-step approval flows and human-in-the-loop workflows
- Long-running data processing pipelines (beyond the 15-min timeout)
- Orchestration patterns that previously required Step Functions Express Workflows
Currently, cdk-serverless has no dedicated support for this execution model. Users must wire up the required DynamoDB state table, IAM permissions, and function configuration manually.
Proposed Solution
A new DurableFunction L3 construct (or extension of the existing LambdaFunction construct) that:
- Configures the Lambda function with the durable execution mode
- Provisions the required DynamoDB state table
- Sets up the necessary IAM permissions
Optional projen helper to scaffold handler code with the durable execution SDK
Related
Add L3 construct support for AWS Lambda Durable Execution - the native AWS feature allowing Lambda functions to pause on I/O (e.g., waiting for HTTP responses, timers, or external events) and resume transparently, enabling long-running and stateful serverless workflows without Step Functions overhead.
Motivation
Lambda Durable Execution enables patterns like:
Currently, cdk-serverless has no dedicated support for this execution model. Users must wire up the required DynamoDB state table, IAM permissions, and function configuration manually.
Proposed Solution
A new DurableFunction L3 construct (or extension of the existing LambdaFunction construct) that:
Optional projen helper to scaffold handler code with the durable execution SDK
Related