Lambda Managed Instances now run 90 minutes — stop splitting 20-minute jobs
Quick summary: 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.
Key Takeaways
- 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) 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

Table of Contents
On 9 Sep 2026, AWS raised the function timeout on Lambda Managed Instances (LMI) 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). The timeout page 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. That does not turn a long-running service into a Lambda function.
Artifacts: timeout vs compute matrix, set-timeout script, architecture diagram (draw.io).
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.

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
When to raise timeout to 5,400 seconds and when not to
Raise it when all of these are true:
- The function already runs on Managed Instances.
- The invoke path is async or a supported ESM.
- The job is a single continuous unit of work that routinely exceeds 30 minutes (peak ETL, transcode, Monte Carlo, longer inference).
- 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.
aws lambda update-function-configuration \
--function-name my-data-processor \
--timeout 5400 \
--region us-east-1SAM / 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.
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 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 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
- Inventory functions that currently chunk at 14 minutes or that already time out. Tag invoke type: sync / async / ESM.
- Drop anything sync, on-demand, MQ, or DocumentDB from the 90-minute list. Those paths top out at 30 minutes.
- Score the rest on the timeout vs compute matrix.
- For SQS consumers, set visibility to ≥ 6× timeout before you raise
--timeout. - Set timeout to p99 + buffer, not 5400, unless you have measured a job that needs the ceiling.
- If a restart at minute 35 would hurt, add durable
step()around the expensive units. - 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.
- 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 · Lambda vs ECS Fargate · EC2 vs Lambda · Which AWS compute
Frequently asked questions
When should we NOT raise a Lambda timeout to 90 minutes?
Does the 90-minute timeout apply to ordinary Lambda functions?
What happens if I set timeout to 5400 seconds and invoke the function synchronously?
What goes wrong if SQS visibility stays at five minutes after raising timeout?
Do Amazon MQ and DocumentDB event source mappings get 90 minutes?
Should we use durable functions instead of a longer timeout?

Enterprise AI Transformation
Enterprise AI transformation and implementation leader focused on pilot-to-production playbooks, with a background in financial services. Writes the FactualMinds guides on serverless, CI/CD, and DevOps on AWS, the delivery plumbing production AI depends on.




