---
title: Lambda Managed Instances now run 90 minutes — stop splitting 20-minute jobs
description: On 9 Sep 2026 AWS raised LMI async and ESM timeout from 15 to 90 minutes (5,400 s). On 19 Nov 2026 on-demand Event Functions rose to 30 minutes (1,800 s). A 90-minute SQS consumer still needs at least 9 hours of visibility.
url: https://www.daventa.co/blog/aws-lambda-managed-instances-90-minute-timeout-2026/
datePublished: 2026-09-10T00:00:00.000Z
dateModified: 2026-11-20T00:00:00.000Z
author: manojkumar-varatharajan
category: Serverless & Containers
tags: aws, aws-lambda, lambda-managed-instances, serverless, event-driven, sqs, architecture
---

# Lambda Managed Instances now run 90 minutes — stop splitting 20-minute jobs

> On 9 Sep 2026 AWS raised LMI async and ESM timeout from 15 to 90 minutes (5,400 s). On 19 Nov 2026 on-demand Event Functions rose to 30 minutes (1,800 s). A 90-minute SQS consumer still needs at least 9 hours of visibility.

On **9 Sep 2026**, AWS [raised the function timeout on Lambda Managed Instances (LMI)](https://aws.amazon.com/blogs/compute/announcing-90-minute-function-timeout-on-aws-lambda-managed-instances/) from **15 minutes to 90 minutes (5,400 seconds)** for **asynchronous** and **event source mapping (ESM)** invocations. That is a **6×** increase, with **no extra charge** beyond standard LMI pricing.

The rest of this post covers **who should use it** and **who will burn money** by treating 5,400 seconds as the new default.

**What the 9 Sep change did not move** (true on that date):

- Classic **on-demand** Lambda stayed at **15 minutes**.
- **Synchronous** invokes stayed at **15 minutes**, including on LMI.
- **Init** on LMI stayed at **15 minutes**.
- **Amazon MQ** and **DocumentDB** ESMs stayed at **15 minutes**.
- A durable **execution** can still run up to **1 year** when invoked asynchronously. Each LMI async invocation inside it can run **90 minutes** continuously.

On **19 Nov 2026**, AWS [raised the Event Function timeout to 30 minutes (1,800 seconds)](https://aws.amazon.com/about-aws/whats-new/2026/11/aws-lambda-30-minute-ondemand-event-functions/). The [timeout page](https://docs.aws.amazon.com/lambda/latest/dg/configuration-timeout.html) now states that general maximum. Synchronous, asynchronous, and event-source-mapping invokes of **on-demand Event Functions** use it. On Lambda Managed Instances, synchronous invokes are also **30 minutes**. Asynchronous invokes and supported event source mappings stay at **90 minutes**. Amazon MQ and DocumentDB mappings are excluded from that 90-minute exception, so they follow the **1,800-second** maximum. **Init** on LMI is still **15 minutes**. This ceiling is Event Functions. It is not Lambda Web Functions, which the JavaScript SDK marked generally available in clients **3.1145.0** and **3.1150.0**. API Gateway REST integrations still stop at **29 seconds**, so a 30-minute function timeout does not lengthen that gateway. The JavaScript SDK models the new limit in `@aws-sdk/client-lambda` **3.1173.0**.

If the job needs hours, or a process that stays warm, Fargate and Batch are still the right tools. As of **18 Nov 2026**, Event Functions on Lambda Managed Instances can request GPU memory with [`AcceleratorConfig`](https://aws.amazon.com/about-aws/whats-new/2026/11/aws-lambda-gpu-managed-instances/). That does not turn a long-running service into a Lambda function.

Artifacts: [timeout vs compute matrix](https://www.daventa.co/examples/architecture-blog-2026/lambda-lmi-90-minute-timeout/timeout-vs-compute-matrix.md), [set-timeout script](https://www.daventa.co/examples/architecture-blog-2026/lambda-lmi-90-minute-timeout/set-lmi-async-timeout.sh), [architecture diagram (draw.io)](https://www.daventa.co/examples/architecture-blog-2026/lambda-lmi-90-minute-timeout/lambda-lmi-90-minute-timeout.drawio).

> **First-party architecture benchmark (not a cited client):** We scored **8** workload shapes against the [timeout vs compute matrix](https://www.daventa.co/examples/architecture-blog-2026/lambda-lmi-90-minute-timeout/timeout-vs-compute-matrix.md) using the **9 Sep 2026** ceilings. **2** landed on **LMI timeout alone** (idempotent SQS ETL, 20 to 40 min). **2** landed on **LMI + durable checkpoints** (transcode / reasoning where a restart at minute 35 wastes the run). **1** stayed on **on-demand Lambda** (sync HTTP). **1** stayed on **Fargate** (MQ consumer). **1** stayed on **durable LMI** for a year-long saga with waits. **1** stayed on **Batch** (hours-long encode). The number that matters operationally is **9 hours** of SQS visibility, not 90 minutes, if you actually set `--timeout 5400`. The 19 Nov ceiling moves on-demand and MQ/DocumentDB rows to 30 minutes. It does not rescore this list.

## Invocation matrix to check before you change `--timeout`

| Invoke path | On-demand Event Function | LMI |
| ----------- | ------------------------ | --- |
| Synchronous (`RequestResponse`, Function URL, ALB) | **30 min** | **30 min** |
| API Gateway REST integration | Caller stops at **29 s** | Caller stops at **29 s** |
| Asynchronous (EventBridge, S3, SNS, async SDK) | **30 min** | **90 min** |
| ESM: SQS, Kinesis, DynamoDB Streams, MSK, self-managed Kafka | **30 min** | **90 min** |
| ESM: Amazon MQ, DocumentDB | **30 min** | **30 min** (excluded from 90) |
| Durable function, async execution | **30 min** per invoke; execution up to 1 year | **90 min** per invoke; execution up to 1 year |
| Init phase | 15 min | **15 min** |

`GetFunctionConfiguration` reports the **configured** timeout. If you set 5,400 and then call the function synchronously, Lambda still stops at 30 minutes. If API Gateway REST is the caller, the integration stops at 29 seconds. Reviews that only read the config value will lie.

![Quiet server hall with a wall clock, used as the reference architecture figure for long-running LMI jobs](../../assets/images/blog/aws-lambda-managed-instances-90-minute-timeout-2026.webp)

_Figure: async and supported ESM paths on LMI can run 90 minutes. Synchronous Event Function invokes are 30 minutes. API Gateway REST still stops at 29 seconds. [Open draw.io](https://www.daventa.co/examples/architecture-blog-2026/lambda-lmi-90-minute-timeout/lambda-lmi-90-minute-timeout.drawio)_

## When to raise timeout to 5,400 seconds and when not to

**Raise it** when all of these are true:

1. The function already runs on **Managed Instances**.
2. The invoke path is **async or a supported ESM**.
3. The job is a **single continuous unit of work** that routinely exceeds 30 minutes (peak ETL, transcode, Monte Carlo, longer inference).
4. You have set SQS visibility to **≥ 6×** the new timeout, or you are not on SQS.

**Leave it** (or set it to measured p99 + buffer) when:

- The path is a **sync API**, especially API Gateway REST at 29 seconds.
- The function is an **on-demand Event Function** and 30 minutes is enough.
- You have not proven the job needs more than 30 minutes on production-like payloads.
- A hang would now bill for **90 minutes × concurrency**.

There is no additional charge for the longer cap. You still pay LMI compute for every second the function actually runs, including the seconds it sits on a dead NAT connection.

## The 6× SQS visibility rule

AWS documents that SQS visibility timeout must be **at least six times** the function timeout so Lambda can retry a throttled batch. At 15 minutes that was **90 minutes** of invisibility. At 30 minutes it is **3 hours**. At 90 minutes it is **9 hours**.

Lambda checks this when you **create** the event source mapping. It does **not** stop you from later dropping queue visibility or raising function timeout out of band. That mismatch is how you get two consumers on one message.

For Kinesis and DynamoDB Streams, retune the **batching window** and **parallelization factor**. A 90-minute batch holds the iterator that long. Enable **partial batch failure** (SQS, Kinesis, DynamoDB Streams, MSK, self-managed Kafka) so one bad record does not replay the whole batch.

## Networking and credentials at 90 minutes

A 15-minute function could ignore idle timeouts. A 90-minute function cannot.

- **NAT Gateway** idle timeout is **350 seconds**. If the function holds a connection through NAT and goes quiet, the connection dies. Send keep-alives, or keep the work chatty.
- **RDS / ElastiCache / vendor API** idle timeouts must cover the full run, or you refresh the client in-loop.
- **Temporary credentials** (STS, vendor tokens) must last the run or be refreshed in the background.
- Respect **DNS TTL**. AWS SDK clients do, but a custom HTTP pool that caches forever will pin a stale IP for the whole 90 minutes.

Idempotency matters more, not less. Lambda is still **at-least-once**. A longer run widens the retry window. Powertools idempotency keys, or durable execution names as keys, belong in the handler before you raise timeout.

## Durable functions and the 90-minute invoke

Timeout (`--timeout`) is **one invocation**. Durable `ExecutionTimeout` is **start to finish**, including waits.

- Idempotent SQS job: **timeout alone**. If the host dies, the message returns to the queue and a fresh invoke starts.
- Expensive mid-job work: **timeout + `step()` checkpoints**. A failure at minute 35 resumes from the last checkpoint instead of minute zero.
- Async durable execution can still span **up to a year**; each LMI invoke inside it can now do **90 minutes** of continuous compute.

Do not use a 90-minute invoke as a substitute for `wait()`. Waiting should checkpoint and suspend, not burn LMI capacity.

_Context: AWS CLI v2, function already on a Managed Instances capacity provider, region `us-east-1`. Synchronous Event Function invokes cap at 1,800 seconds. This script is for the 5,400-second async path._

```bash
aws lambda update-function-configuration \
  --function-name my-data-processor \
  --timeout 5400 \
  --region us-east-1
```

SAM / CloudFormation uses `Timeout: 5400` on `AWS::Serverless::Function`. The change applies to **subsequent** invokes. ESM mappings can take a few minutes to pick it up.

> **Reproduce this:** Clone [`examples/architecture-blog-2026/lambda-lmi-90-minute-timeout/set-lmi-async-timeout.sh`](https://www.daventa.co/examples/architecture-blog-2026/lambda-lmi-90-minute-timeout/set-lmi-async-timeout.sh). `bash set-lmi-async-timeout.sh my-data-processor us-east-1 https://sqs.us-east-1.amazonaws.com/ACCOUNT/queue` updates timeout to 5400 and **fails** if SQS visibility is below 32,400 seconds (9 hours). Score the workload first with [`timeout-vs-compute-matrix.md`](https://www.daventa.co/examples/architecture-blog-2026/lambda-lmi-90-minute-timeout/timeout-vs-compute-matrix.md).

> **What broke:** Modeled counter-case, not a production incident. Team sets `Timeout: 5400` on an LMI function fronted by API Gateway, reads 5400 from `GetFunctionConfiguration`, and ships. The report export still dies at the gateway: API Gateway REST stops at **29 seconds**, and a synchronous Event Function invoke stops at **30 minutes**, not 90. Second failure mode: same 5400 on an SQS mapping while visibility stays at **300 s**. A second consumer starts at minute 5 while the first is still writing. Detection: duplicate primary keys plus `ApproximateReceiveCount` &gt; 1 on in-flight messages. Fix: move the export to EventBridge async (or SQS), set visibility to **32,400 s**, and set timeout to measured p99 + buffer, not the platform max.

## Opinionated recommendation

**Use LMI 90-minute timeout** for async or SQS/Kinesis/DynamoDB Streams jobs that already belong on Managed Instances and that routinely miss 30 minutes (ETL, transcode, CPU-bound calc, longer inference), **after** you fix visibility, NAT keep-alives, and idempotency.

**Add durable checkpoints** when restarting from zero is the expensive part.

**Stay on on-demand Event Functions** for spiky, sub-30-minute, scale-to-zero handlers. The [LMI ops playbook](https://www.daventa.co/blog/aws-lambda-managed-instances-2026-operations-guide/) is still the scaling guide; this post does not replace it.

**Prefer Fargate or Batch** for hours-to-days, custom AMIs, sticky in-memory state, or a process that must stay up. GPU Event Functions on LMI are the 18 Nov `AcceleratorConfig` path, not a reason to put a service on Lambda. Ninety minutes is not unlimited Lambda. Walk [which compute](https://www.daventa.co/decide/which-aws-compute/) if the duration question is still open.

**Do not** raise timeout to 5,400 seconds on a sync API, an on-demand Event Function, an MQ/DocumentDB mapping, or as a global default.

## What to do this week

1. Inventory functions that currently **chunk at 14 minutes** or that already time out. Tag invoke type: sync / async / ESM.
2. Drop anything **sync**, **on-demand**, **MQ**, or **DocumentDB** from the 90-minute list. Those paths top out at 30 minutes.
3. Score the rest on the [timeout vs compute matrix](https://www.daventa.co/examples/architecture-blog-2026/lambda-lmi-90-minute-timeout/timeout-vs-compute-matrix.md).
4. For SQS consumers, set visibility to **≥ 6×** timeout **before** you raise `--timeout`.
5. Set timeout to **p99 + buffer**, not 5400, unless you have measured a job that needs the ceiling.
6. If a restart at minute 35 would hurt, add durable `step()` around the expensive units.
7. Alarm on duration p99 and on SQS `ApproximateAgeOfOldestMessage`. A 9-hour visibility window hides stuck messages unless you watch age.

## What this post doesn't cover

- **LMI capacity-provider sizing, scheduled scaling, 32 GB / 16 vCPU, file descriptors:** see the [LMI operations guide](https://www.daventa.co/blog/aws-lambda-managed-instances-2026-operations-guide/).
- **Region availability** of 90-minute timeout on LMI: confirm in the account before you design around it.
- **A first-party duration benchmark** of a 90-minute job. This post shipped the day after the announcement; the matrix is an architecture score, not a stopwatch run in our lab.
- **On-demand or synchronous 90-minute timeout.** Those paths are 30 minutes as of 19 Nov 2026. They are not 90.
- **Cost model vs Fargate** at 60 to 90 minutes of continuous vCPU. Price both before you move a fleet.

**Related:** [AWS serverless services](https://www.daventa.co/services/aws-serverless/) · [Lambda vs ECS Fargate](https://www.daventa.co/compare/aws-lambda-vs-ecs-fargate/) · [EC2 vs Lambda](https://www.daventa.co/compare/aws-ec2-vs-lambda/) · [Which AWS compute](https://www.daventa.co/decide/which-aws-compute/)

## FAQ

### When should we NOT raise a Lambda timeout to 90 minutes?
Do not set 5,400 seconds on a synchronous invoke, on an on-demand Event Function, on Amazon MQ or DocumentDB event source mappings, or as a default just in case. As of 19 Nov 2026 those paths follow the 30-minute Event Function maximum, not 90. A hung downstream call with a 90-minute timeout becomes a 90-minute billing event per concurrent invoke. Keep timeout close to the real p99 duration plus a small buffer.

### Does the 90-minute timeout apply to ordinary Lambda functions?
No. The 90-minute cap is for functions running on Lambda Managed Instances, and only for asynchronous invokes and supported event source mappings. On-demand Event Functions are 30 minutes as of 19 Nov 2026, including synchronous invokes. The Init phase on LMI is still 15 minutes. Lambda Web Functions are a different product and are not this ceiling.

### What happens if I set timeout to 5400 seconds and invoke the function synchronously?
Lambda applies the 30-minute synchronous cap, not 90 minutes. GetFunctionConfiguration reports 5400, which is easy to misread in a review. API Gateway REST integrations still stop at 29 seconds, so a long sync export through that gateway still fails even though the function timeout is higher.

### What goes wrong if SQS visibility stays at five minutes after raising timeout?
AWS requires SQS visibility timeout to be at least six times the function timeout. A 30-minute function needs at least 3 hours of visibility. A 90-minute function needs at least 9 hours. If visibility is shorter than runtime, a second consumer can start while the first is still working, causing duplicate side effects, lock fights, and poisoned batches. Lambda validates this at mapping create time, not after you change the queue later.

### Do Amazon MQ and DocumentDB event source mappings get 90 minutes?
No. The timeout page excludes those mappings from the 5,400-second Lambda Managed Instances exception. They follow the Event Function maximum of 1,800 seconds. Use SQS, Kinesis, DynamoDB Streams, Amazon MSK, or self-managed Kafka for the 90-minute window, or move MQ and DocumentDB consumers to Fargate.

### Should we use durable functions instead of a longer timeout?
Use the 90-minute timeout alone when the job is idempotent and cheap to restart (SQS ETL is the usual case). Combine it with durable step() checkpoints when a failure at minute 35 would throw away expensive work. Durable execution can still run up to one year when invoked asynchronously; each invocation on LMI is now 90 minutes, not 15.

---

*Source: https://www.daventa.co/blog/aws-lambda-managed-instances-90-minute-timeout-2026/*
