Amazon Web Services has raised the maximum timeout for AWS Lambda Event Functions that run on demand from 15 minutes to 30 minutes. The new limit applies to synchronous calls, asynchronous calls and invocations made through an event source mapping (ESM). AWS posted the change on November 19, 2026.
The 15-minute ceiling has shaped serverless designs for years. Any job that might run longer had to be split into chunks, handed to a container service or wrapped in a workflow engine. Doubling the limit lets many of those jobs stay as one plain function, with no extra moving parts.
What Changed
The timeout setting tells Lambda how long a single invocation may run before it is stopped. According to the updated Lambda Developer Guide, the default is still 3 seconds, and you can now raise it in 1-second steps up to 1,800 seconds.
- On-demand Event Functions: up to 30 minutes for synchronous, asynchronous and ESM invocations, in all commercial AWS Regions
- Lambda Managed Instances: synchronous invocations now also allow up to 30 minutes
- Lambda Managed Instances: asynchronous and most ESM invocations keep the 90-minute limit that arrived in September 2026 (the guide lists Amazon MQ and Amazon DocumentDB sources as exceptions)
- The longer limit also applies when the function is part of a Lambda durable function or is called from an AWS Step Functions Standard workflow
Pricing does not change. You still pay standard Lambda rates, which means a function that really runs for 30 minutes is billed for that full duration.
Why AWS Made the Change
AWS points to data-heavy work that runs on demand and needs a long, unbroken stretch of compute. It names model inference, video and audio transcoding, and financial number crunching as examples. Until now, such jobs either had to finish inside 15 minutes or be redesigned around that wall.
Event Functions are the standard Lambda functions that power event processors, web APIs and data pipelines. Out of the box they run on demand and scale with spiky traffic. For steady traffic, teams can place them on Lambda Managed Instances, which run on Amazon EC2 capacity while keeping the Lambda programming model.
Points to Check Before Raising Your Timeout
A longer limit is not something to switch on everywhere. The developer guide warns that when a timeout sits close to a function's average run time, random slow calls can push it over. Set the value with headroom based on realistic data sizes, not small test samples.
Callers matter too. When another service invokes a function synchronously, it may stop waiting before the function ends, so a 30-minute function behind a caller with a shorter wait will still fail from the client's point of view. Check the response timeout of anything that calls your function directly.
Queues need attention as well. For functions fed by Amazon SQS, the guide says to increase the visibility timeout on the queue first, and only then the function timeout. Otherwise a message can reappear and be processed a second time while the first run is still busy.
What It Means for Developers
For database and data teams, the clearest win is batch work triggered by events.
Nightly exports, large CSV loads into PostgreSQL or Oracle, report builds and data cleanup jobs that ran 16 to 25 minutes can now fit in a single invocation. No more checkpointing state across several calls just to dodge the old limit.
It also changes the decision between Lambda and containers. Teams that moved a job to AWS Fargate or AWS Batch only because of the 15-minute cap can look at Lambda again. The trade-off is cost: long functions with large memory settings can cost more than a container, so compare both before moving.
Be careful with database connections. A function that holds a connection open for half an hour ties up a session on the database the whole time. With many parallel runs, that can exhaust connection limits, so use a connection pool or proxy and cap concurrency where needed.
Long jobs should still be safe to retry. A failure at minute 28 wastes nearly all of the work, so make steps idempotent and use durable functions or Step Functions for anything that may pass 30 minutes.
Related coverage on the site explains how Lambda durable functions can pause, resume and delete executions and how Lambda Managed Instances can scale to zero.
How to Set the New Timeout
You can change the value in the Lambda console, from the command line, through the SDKs, or in infrastructure-as-code tools such as CloudFormation, CDK and SAM. In the console, open the function, go to the Configuration tab, choose General configuration and edit the Timeout field with a value up to 1,800 seconds.
From the command line, the update-function-configuration command takes a timeout value in seconds, so a full 30 minutes is 1800. In AWS SAM, update the Timeout property of the function in template.yaml and redeploy. AWS also says coding assistants that use its Agent Toolkit for AWS can make the change.
Before rolling it out widely, test with production-sized input and watch duration and error metrics in Amazon CloudWatch. Then raise the timeout only on functions that truly need it.
Conclusion
AWS Lambda now lets on-demand Event Functions run for up to 30 minutes, twice the old ceiling, in every commercial Region at no extra price per unit. Long data and inference jobs can stay in a single function, but callers, queue visibility settings and database connections need a review first.
Sources
- AWS What's New: AWS Lambda now supports a 30-minute timeout for on-demand Event Functions
- AWS Lambda Developer Guide: Configure Lambda Event Function timeout
See my articles more often when you search Google.
