---
title: Make your AI agents durable on AWS Lambda
description: >-
  When an agent step fails halfway through, the whole run is usually lost.
  Pydantic AI now supports AWS Lambda durable functions, and this recording
  shows how to use them so every tool call and task becomes a durable operation
  that survives failures and resumes where it stopped.
date: '2026-11-12'
dateDisplay: 'Nov 12, 2026'
duration: 45 min
status: past
tags:
  - Pydantic AI
  - Logfire
speakers:
  - Thomas Gaigher
  - Douwe Maan
canonical: 'https://pydantic.dev/events/make-ai-agents-durable-aws-lambda'
---

> Markdown version of [Make your AI agents durable on AWS Lambda](https://pydantic.dev/events/make-ai-agents-durable-aws-lambda) — the canonical HTML page.
>
> Nov 12, 2026 · 45 min · Speakers: [Thomas Gaigher](https://www.linkedin.com/in/thomasgaigher/), [Douwe Maan](https://pydantic.dev/authors/douwe-maan.md)
>
> All events: [/events.md](https://pydantic.dev/events.md) · Site index: [/llms.txt](https://pydantic.dev/llms.txt)

---

# Make your AI agents durable on AWS Lambda

When an agent step fails halfway through, the whole run is usually lost. Pydantic AI now supports AWS Lambda durable functions, and this recording shows how to use them so every tool call and task becomes a durable operation that survives failures and resumes where it stopped.

## What you'll learn

- Why agent workflows aren't durable by default, and what that costs you in production
- How durable execution works in Pydantic AI, and where Lambda durable functions fits alongside other providers
- Best practices for running durable agents on Lambda, including retries, long-running tasks and observability

## About

AI agents plan their own workflows, call tools and chain tasks together. When a step fails halfway, because of a timeout, a crashed process or a flaky API, the whole run is usually lost. For agents in production, that isn't good enough.

Pydantic AI now supports AWS Lambda durable functions as a durability provider. Every tool call and task your agent runs becomes a durable operation that can survive failures and resume where it stopped. You don't have to rewrite your agent or build your own orchestration.

In this session, Douwe Maan, lead developer of Pydantic AI, and Thomas Gaigher from AWS, who helped build the integration, take a Pydantic AI agent and make it durable on AWS Lambda. They cover where Lambda durable functions fits alongside other durability providers, then get into retries, long-running tasks and observability, with Q&A from both teams.

The code from the session is on GitHub: [DouweM/pydantic-ai-aws-lambda-example](https://github.com/DouweM/pydantic-ai-aws-lambda-example).

**Who it's for:** Developers and engineers building reliable AI agents in production, whether you already use AWS or are evaluating serverless options.

## Recording

Watch the recording on the event page: https://pydantic.dev/events/make-ai-agents-durable-aws-lambda
