Skip to main content

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

Serverless & ContainersUpdated Manoj V.8 min read

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
Quiet navy server hall at night with amber rack lights and a wall clock, suggesting a long uninterrupted compute window
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 pathOn-demand Event FunctionLMI
Synchronous (RequestResponse, Function URL, ALB)30 min30 min
API Gateway REST integrationCaller stops at 29 sCaller stops at 29 s
Asynchronous (EventBridge, S3, SNS, async SDK)30 min90 min
ESM: SQS, Kinesis, DynamoDB Streams, MSK, self-managed Kafka30 min90 min
ESM: Amazon MQ, DocumentDB30 min30 min (excluded from 90)
Durable function, async execution30 min per invoke; execution up to 1 year90 min per invoke; execution up to 1 year
Init phase15 min15 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

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:

  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.

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.

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

  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.
  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.
  • 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?
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.
Manoj V.
Manoj V.

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.

Enterprise AI TransformationPilot to ProductionFinancial ServicesAWS ServerlessCI/CDDevOps

Not sure which approach fits?

Which AWS Compute Service Should I Use?

Lambda, ECS Fargate, EKS, EC2, App Runner, Beanstalk, or Lightsail? Answer 5 questions and get an opinionated recommendation with the comparison guide that goes deeper.

Use decision tree →

Recommended Reading

Explore All Articles »