aws-lambda-durable-functions

Develop resilient multi-step AWS Lambda applications with durable functions.

856|141|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/awslabs/agent-plugins --skill aws-lambda-durable-functions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-lambda-durable-functions
Source: https://github.com/awslabs/agent-plugins/tree/main/plugins/aws-serverless/skills/aws-lambda-durable-functions
Command: npx skills add https://github.com/awslabs/agent-plugins --skill aws-lambda-durable-functions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @aws/durable-execution-sdk-js, @aws/durable-execution-sdk-js-testing, aws-durable-execution-sdk-python, aws-durable-execution-sdk-python-testing, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables the creation of robust, multi-step serverless applications that can run for extended periods, automatically handling state persistence, retries, and complex orchestration logic even through interruptions.

Core Features & Use Cases

  • Durable Execution: Build applications that can execute for up to a year, maintaining state across invocations.
  • State Persistence & Replay: Automatically checkpoints state and replays execution safely, ensuring reliability.
  • Orchestration: Design complex workflows with steps, waits, callbacks, and error handling patterns like the Saga pattern.
  • Use Case: Orchestrate a multi-day AI training pipeline, manage a human-in-the-loop approval process for loan applications, or build a serverless order fulfillment system that handles payment, inventory, and shipping steps reliably.

Quick Start

Use the aws-lambda-durable-functions skill to build a resilient, multi-step serverless application.

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 AWS Lambda functions that survive interruptions?

Long-running stateful AWS Lambda functions survive interruptions by using durable execution to automatically checkpoint state and safely replay operations. This approach handles state persistence, retry logic, and complex orchestration for executions lasting up to one year.

How does state persistence and replay work for serverless workflow orchestration?

State persistence and replay for serverless workflow orchestration works by automatically checkpointing execution state and safely replaying critical operations. This ensures reliable multi-step workflows recover seamlessly from interruptions without losing progress.

What is the best way to implement the Saga pattern for error handling in serverless applications?

Implementing the Saga pattern for serverless applications is best achieved using durable functions that manage complex orchestration and state. This approach automatically handles state persistence and compensating transactions during multi-step workflow failures.

Can I use AWS Lambda durable functions for human-in-the-loop callback workflows?

AWS Lambda durable functions support human-in-the-loop callback workflows through built-in wait and callback orchestration patterns. They maintain state persistence automatically, allowing multi-step serverless applications to pause indefinitely for external approvals.

How do I locally test multi-step serverless applications and workflow orchestration logic?

Locally test multi-step serverless applications and workflow orchestration logic using the LocalDurableTestRunner. It operates with dedicated durable execution testing SDKs for JavaScript and Python to validate state persistence and replay behavior without deploying.

What are the limitations of durable execution for serverless state machines?

Limitations of durable execution for serverless state machines include managing executions up to a one-year maximum duration limit. Developers must also carefully design complex orchestration patterns like the Saga pattern to handle long-running state persistence correctly.