AWS Lambda Now Runs Up to 30 Minutes per Invocation, the First Raise Since 2018. Your API Gateway Still Hangs Up at 29 or 30 Seconds.
On November 19, 2026, AWS raised the maximum timeout for on-demand Lambda Event Functions from 15 minutes to 30 minutes (1,800 seconds), in all commercial regions, with standard pricing. It's the first increase since October 2018, when the limit went from 5 to 15 minutes, and it's the one I've wanted for years.
I have two Lambda jobs that I split into chunks purely because of the 15-minute wall: a nightly export and a PDF batch that occasionally runs long. Both can now be one function again. What the change won't do is fix the other timeout problem I hear about more often, the API endpoint that dies after half a minute. That one lives somewhere else.
What actually changed
The new 30-minute ceiling applies to on-demand Event Functions for synchronous, asynchronous and event source mapping invocations. There's no feature flag. You raise the timeout on a function, and the new value applies to invocations that start after the update. Anything above 1,800 seconds is rejected.
Two details from the announcement are easy to miss. Web Functions, AWS's category for HTTP-facing functions, stay at 15 minutes. And on Lambda Managed Instances, synchronous invocations also get 30 minutes, while async and event source mapping invocations there keep their existing 90-minute limit.
The quotas page now lists 1,800 seconds. The init phase is unchanged at 10 seconds for on-demand functions, so a slow cold start is still a slow cold start.
The limits that didn't move
This is the part I'd read before touching any timeout settings.
API Gateway REST APIs have an integration timeout of up to 29 seconds. Since June 2024 you can request more for Regional and private APIs, at the possible cost of a lower throttle quota, but edge-optimized APIs can't go above it. HTTP APIs are capped at 30 seconds, and that one can't be raised at all. So if your Lambda sits behind API Gateway and the request takes two minutes, the client gets a timeout and your function keeps running and billing in the background.
Function URLs don't add their own timeout, so the function's limit applies. That makes them the most direct way to hold an HTTP request open for a long time, though I'd think hard about whether any browser client should wait that long. With response streaming, AWS notes that a function isn't interrupted when the client disconnects, so you pay for the full run either way.
An Application Load Balancer waits for the Lambda function to respond or time out, but request and response bodies for Lambda targets are limited to 1 MB each.
Some event sources have their own ceilings. Amazon MQ and DocumentDB event source mappings stay at 14 minutes, and so do non-provisioned Kafka mappings created before November 19, 2026. InfoQ reports those Kafka mappings need to be recreated to get the new limit.
Two traps for longer functions
The first is SQS. AWS recommends a queue visibility timeout of at least six times the function timeout. For a 30-minute function, that's a three-hour visibility timeout, which means a message from a crashed run sits invisible for three hours before a retry. That's fine for a nightly job and painful for anything a customer is waiting on.
The second is concurrency, and it's the one that would bite me. AWS's own example: one request per second at 30 minutes each needs 1,800 concurrent executions. Many accounts run with a default regional concurrency quota of 1,000, so a long function triggered by user traffic can starve every other function in the region. If I make a job longer, I'll put a reserved concurrency limit on it the same day.
AWS also flags that NAT gateways drop idle connections after 350 seconds. If your 25-minute function opens a database connection through a NAT and then goes quiet, expect it to be gone when you come back to it.
The cost math
Pricing didn't change. In US East, x86 compute is $0.0000166667 per GB-second and requests are $0.20 per million. A 30-minute run at 1 GB of memory is 1,800 GB-seconds, about 3 cents. That's cheap enough that I'd stop splitting jobs to save money. I'd only split them to make retries smaller.
For comparison, there was a fun HN post this week from someone serving a Qwen 3.5 4B fine-tune across 5,600 Lambda invocations per request, one model layer per function. It worked, and it came out at about $8.40 per million tokens against roughly $0.10 for a hosted model, more than 80 times worse. The longer timeout doesn't change that kind of math. Lambda is still a bad GPU.
What I'd actually do
If you have a batch job you chopped into pieces because of the 15-minute limit, merge it back this week. Set the new timeout, add reserved concurrency, raise the SQS visibility timeout if a queue feeds it, and check that any NAT-routed connections send keepalives or reconnect.
If your problem is a slow API request, don't touch the Lambda timeout first. Either switch that path to a Function URL and accept the trade-offs, or, better in my view, make it asynchronous: return a job ID immediately, run the work as an Event Function, and let the client poll. That pattern was the right answer before November 19 and it still is.
Where this could be wrong for you: if you already moved long jobs to Fargate, Step Functions or Lambda Durable Functions, there's no reason to move back. AWS's own announcement says durable executions invoked synchronously or through a function URL are also limited to 30 minutes, while async durable runs can go much longer. A 30-minute Lambda is simpler than any of those, and simpler is the only reason I'd migrate.
Author
Lukas
@lukcombinator