AWS Lambda Functions Now Run Up to 90 Minutes
On September 9, 2026, AWS raised the function timeout to 90 minutes on Lambda Managed Instances — a 6× increase over the 15-minute ceiling that had stood since 2018 (and five minutes at launch in 2014). The number is not the story. The story is that an architectural decision settled years ago has been reopened.
The problem: a timeout that shaped the architecture
The 15-minute limit was never just an inconvenience. It dictated system design. Any job that crossed it — media processing, large-batch ETL, AI inference over a long input, bulk file transfers — had to be broken apart: sliced into chunks, coordinated through Step Functions or a queue, with state persisted between every slice and the next.
The result is that half the code describes the chunking mechanism rather than the work. The alternative was leaving Lambda entirely for ECS or AWS Batch, which brings back exactly the infrastructure management that serverless was meant to remove.
What actually changed
The new timeout does not apply to every Lambda. The conditions are specific:
- It runs only on Lambda Managed Instances, the tier introduced at re:Invent 2025 that allows multiple concurrent requests per instance at pricing closer to EC2, without managing infrastructure.
- It covers asynchronous invocations and event source mappings only. Synchronous invocations remain capped at 15 minutes.
- Initialization code is still limited to 15 minutes.
- Amazon MQ and DocumentDB event source mappings stay at 15 minutes.
- There is no additional charge for the longer timeout; standard Lambda Managed Instances pricing applies.
Alongside this, durable functions can run for up to a year when invoked asynchronously with checkpointing.
A practical example
The configuration itself is one line in the template:
Resources:
ReportBuilder:
Type: AWS::Serverless::Function
Properties:
Runtime: nodejs24.x
Timeout: 5400 # 90 minutes, in secondsThe configuration is the easy part. The longer window does not remove the need to checkpoint — it only makes the chunks larger and fewer:
export async function handler(event, context) {
const { jobId } = event; // stable key that makes writes idempotent
let cursor = await loadCheckpoint(jobId);
while (cursor) {
// leave headroom instead of being cut off mid-batch
if (context.getRemainingTimeInMillis() < 120_000) {
await saveCheckpoint(jobId, cursor);
return { status: "resume", cursor };
}
const batch = await fetchBatch(cursor);
await processBatch(batch, { jobId }); // safe to replay
cursor = batch.next;
await saveCheckpoint(jobId, cursor);
}
return { status: "done" };
}getRemainingTimeInMillis is what turns a timeout from a hard wall into an orderly exit. And with far larger batches inside a single invocation, processing big archives inside the function becomes practical — which is where native ZIP support in node:zlib earns its place over an extra dependency.
Real-world caveats
More time widens the error surface rather than shrinking it:
- No exactly-once guarantee. AWS states plainly that Lambda does not guarantee exactly-once processing, and that longer-running functions widen the window for retries and duplicate deliveries. Every write has to tolerate replay.
- Temporary credentials and connections. A database session or a token may expire well before minute ninety. Validate inside the loop, not only at startup.
- Downstream limits did not move. The API and gateway timeouts around your function are unchanged.
- The economic question. Serverless practitioner Yan Cui notes the change blurs the line between running a server and invoking a function. If a workload genuinely saturates 90 minutes continuously, ECS Tasks or AWS Batch may be the better answer on both cost and operations.
Takeaway
The working rule is simple: the longer timeout is a tool for simplifying work that was fragmented for no real reason, not a license to turn a function into a permanent service. If the workload is intermittent batches that overrun a quarter of an hour, half the orchestration can leave your architecture. If it is a continuous load, the answer is still outside Lambda.
Primary source: Announcing 90-minute function timeout on AWS Lambda Managed Instances