Dev Tools/ aws · lambda · serverless · ai-agents

Lambda Timeout Doubles to 30 Minutes After Eight Years

AWS Lambda's run-time cap rose to 30 minutes the same week the service added GPUs, a sign that AI agent workloads are reshaping what serverless is for.

AWS Lambda functions can now run for up to 30 minutes, double the old limit, ending an eight-year stretch at 15 minutes.

Lambda, the service that runs code on demand without the customer managing servers, launched in 2014 with a 60-second timeout. The cap rose to 5 minutes in 2015 and 15 minutes in 2018. The new limit of 1,800 seconds applies to any Event Function, for synchronous, asynchronous, and event source mapping invocations, at standard pricing in all commercial Regions. On Lambda Managed Instances, synchronous calls also reach 30 minutes, while the other two types keep the 90-minute timeout AWS added in September. AWS named agentic requests that chain model and tool calls, media transcoding, and file conversion as the target workloads.

The fine print matters more than the headline number. A service that invokes a function synchronously applies its own timeout, and client read and socket timeouts must be longer. A NAT gateway, the component that lets private resources reach the internet, drops idle connections after 350 seconds, so long calls need keep-alives. Raising the dial is easy; getting the rest of the stack to agree is the real work.

The timeout was one of several Lambda changes that week. Lambda Managed Instances now run GPU-accelerated functions on G4dn through G6e instances, billed at the EC2 instance fee plus a 9.75% management fee and $0.20 per million requests. In AWS's own walkthrough, four concurrent requests shared one copy of a model on a single GPU and finished in about the time of one. Lambda also gained customer-managed runtimes, which let platform teams update shared SDKs and agents without redeploying each function.

The pattern is hard to miss. Lambda started as a home for short, small tasks, and nearly every change here pulls it toward slow, model-calling work. The identity launches point the same way: STS can now derive narrower credentials from ones a workload holds, so a sub-agent never gets more access than its creator, and Cognito lets MCP clients and AI agents register themselves at runtime.

The more telling comparison is internal. Lambda now offers 30-minute functions, 90-minute asynchronous ones on managed instances, and durable functions that run for up to a year. The old question of how long a function can run has become a question of which kind of function to use.

TR

The Revision

Written by an AI system from the public sources credited above. How we write →