aws-lambda-durable-functions

Orchestrate long-running AWS Lambda workflows with state persistence and deterministic replay.

2.3k|234|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/aws/agent-toolkit-for-aws --skill aws-lambda-durable-functions-aws
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-lambda-durable-functions
Source: https://github.com/aws/agent-toolkit-for-aws/tree/main/skills/specialized-skills/serverless-skills/aws-lambda-durable-functions
Command: npx skills add https://github.com/aws/agent-toolkit-for-aws --skill aws-lambda-durable-functions-aws

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Builds resilient, long-running multi-step applications with AWS Lambda durable functions with automatic state persistence, retry logic, and orchestration for long-running executions. Covers the critical replay model, step operations, wait/callback patterns, error handling with saga pattern, testing with LocalDurableTestRunner. Triggers on phrases like lambda durable functions, durable execution, workflow orchestration, state machines, retry/checkpoint patterns, long-running stateful Lambda functions, saga pattern, human-in-the-loop callbacks, reliable serverless applications, context.step, context.wait, context.invoke, context.runInChildContext, withDurableExecution, DurableContext, UnrecoverableInvocationError, durable-execution-sdk, qualified ARN invocation.

Core Features & Use Cases

  • Durable execution with checkpointing and deterministic replay for long-running Lambda workflows.
  • Step orchestration, waits, callbacks, and saga-pattern-based error handling for reliable distributed tasks.
  • Local testing support with LocalDurableTestRunner to validate complex workflows before deployment.

Quick Start

Wrap your Lambda with withDurableExecution once you have installed the AWS Durable Execution SDK to start a durable workflow.

Frequently Asked Questions about aws-lambda-durable-functions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build long-running stateful Lambda workflows with automatic retry and checkpointing?

To build long-running stateful Lambda workflows, wrap your Lambda handler with withDurableExecution from the AWS Durable Execution SDK. This enables automatic state persistence, checkpointing, and deterministic replay for reliable distributed tasks.

What is durable execution and when do I need it for serverless applications?

Durable execution is a mechanism that persists workflow state to enable deterministic replay and automatic retries. You need it for reliable serverless applications when orchestrating complex, multi-step distributed tasks that require long-running executions or human-in-the-loop callbacks.

How do I handle errors in distributed Lambda workflows using the saga pattern?

Handle errors in distributed Lambda workflows by implementing saga-pattern-based error handling via DurableContext. This approach manages step orchestration and compensating transactions, ensuring reliable execution across complex distributed tasks.

Can I test long-running Lambda workflows locally before deployment?

Yes, you can test long-running Lambda workflows locally before deployment using LocalDurableTestRunner. This tool validates complex step orchestration, waits, callbacks, and saga-based error handling without deploying to the cloud.

What are the limitations of using durable execution for Lambda orchestration?

Limitations of Lambda durable execution include the requirement for proper IAM permissions, the AWS Durable Execution SDK dependency, and the need to use qualified ARNs for durable invocations to ensure correct state replay.