Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

aws-lambda-durable-functions

БесплатноБез исполняемых скриптовНе проверен

Builds resilient, long-running, multi-step applications with AWS Lambda durable functions with automatic state persistence, retry logic, and orchestration for…

awsот aws★ 3 696 звёзд на GitHub

Об этом скилле

AWS Lambda durable functions

Durable functions are Lambda functions that checkpoint progress and can run multi-step workflows for up to one year, suspending without compute charges during waits and callbacks.

Use the developer guides for APIs

Do not write SDK method signatures, configuration objects, or IaC properties from memory. Read the relevant page first. The SDK guide covers TypeScript, Python, Java, Go, Rust, and C#, and the API names differ between languages.

AWS Durable Execution SDK Developer Guide:

Topic Link
Key concepts and quickstart https://docs.aws.amazon.com/durable-execution/getting-started/key-concepts/
Steps (retries, step semantics) https://docs.aws.amazon.com/durable-execution/sdk-reference/operations/step/
Waits https://docs.aws.amazon.com/durable-execution/sdk-reference/operations/wait/
Wait for condition (polling) https://docs.aws.amazon.com/durable-execution/sdk-reference/operations/wait-for-condition/
Callbacks and wait for callback https://docs.aws.amazon.com/durable-execution/sdk-reference/operations/callback/
Invoke (function chaining) https://docs.aws.amazon.com/durable-execution/sdk-reference/operations/invoke/
Parallel https://docs.aws.amazon.com/durable-execution/sdk-reference/operations/parallel/
Map (concurrency, completion policies) https://docs.aws.amazon.com/durable-execution/sdk-reference/operations/map/
Child contexts https://docs.aws.amazon.com/durable-execution/sdk-reference/operations/child-context/
Errors https://docs.aws.amazon.com/durable-execution/sdk-reference/error-handling/errors/
Retries https://docs.aws.amazon.com/durable-execution/sdk-reference/error-handling/retries/
Serialization https://docs.aws.amazon.com/durable-execution/sdk-reference/state/serialization/
Logging https://docs.aws.amazon.com/durable-execution/sdk-reference/observability/logging/
Python language guide https://docs.aws.amazon.com/durable-execution/sdk-reference/languages/python/
TypeScript language guide https://docs.aws.amazon.com/durable-execution/sdk-reference/languages/typescript/
Testing (local and cloud runners) https://docs.aws.amazon.com/durable-execution/testing/
Writing tests https://docs.aws.amazon.com/durable-execution/testing/authoring/
Test assertions https://docs.aws.amazon.com/durable-execution/testing/assertions/
Best practices (determinism, idempotency, state) https://docs.aws.amazon.com/durable-execution/patterns/best-practices/

Lambda durable functions guide, for the Lambda service side:

Topic Link
Deploying with CloudFormation, AWS CDK, AWS SAM, Terraform https://docs.aws.amazon.com/lambda/latest/dg/durable-getting-started-iac.html
Invoking (sync, async, execution names) https://docs.aws.amazon.com/lambda/latest/dg/durable-invoking.html
Security and permissions https://docs.aws.amazon.com/lambda/latest/dg/durable-security.html
Monitoring and execution history https://docs.aws.amazon.com/lambda/latest/dg/durable-monitoring.html
Best practices https://docs.aws.amazon.com/lambda/latest/dg/durable-best-practices.html
Supported runtimes https://docs.aws.amazon.com/lambda/latest/dg/durable-supported-runtimes.html

Works best with the AWS MCP Server for reading these pages, but it is not required.

Critical rules: Lambda

  1. Durable execution is enabled only when a function is created. It cannot be added to an existing function. Create a new function with durable execution (DurableConfig in IaC) and move the logic into it.
  2. The handler must be wrapped with the SDK (withDurableExecution in TypeScript, @durable_execution in Python). A plain handler deployed to a durable function fails every execution, so when moving existing code, wrap it rather than copying it unchanged.
  3. Invoke with a qualified ARN: a version, an alias, or $LATEST (for example my-function:live). An unqualified function name fails.
  4. The execution role needs lambda:CheckpointDurableExecution, lambda:GetDurableExecutionState, and CloudWatch Logs permissions. The managed policy AWSLambdaBasicDurableExecutionRolePolicy grants these on all resources and is fine for getting started; for production, use a policy scoped to the function's ARN. Durable invokes also need lambda:InvokeFunction on the target. External systems that complete callbacks need lambda:SendDurableExecutionCallbackSuccess and lambda:SendDurableExecutionCallbackFailure, plus lambda:SendDurableExecutionCallbackHeartbeat if they send heartbeats.
  5. **To invoke a durable function synchronously, through an event source mapping, or through a function URL,
Полный SKILL.md на GitHub

Установить aws-lambda-durable-functions в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл aws-lambda-durable-functions?

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, durable-execution-sdk, qualified ARN invocation, and durable handler replay.

Как установить скилл aws-lambda-durable-functions?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл aws-lambda-durable-functions запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить aws-lambda-durable-functions с