1 December 2026 · 14 min read · Download as PDF

AWS Lambda timeout is now 30 minutes: what changed, what it costs, what to check

On 19 Nov 2026, AWS raised the maximum Lambda timeout from 15 to 30 minutes for on-demand Event Functions; Managed Instances allow 90 minutes for async work. What changed, what a 30-minute run costs next to Fargate, and what to check first: API Gateway, retries, SQS, concurrency.

Prices are as of 1 Dec 2026 and can change, up or down. Check the provider's pricing page before you rely on them.

Cover: AWS Lambda timeout is now 30 minutes: what changed, what it costs, what to check

On 19 Nov 2026, AWS doubled the maximum AWS Lambda timeout from 15 minutes to 30 minutes (1,800 seconds) for on-demand Event Functions. It applies to synchronous, asynchronous and event source mapping invocations, in all commercial AWS Regions, at the standard Lambda price. The limit had been 15 minutes since 2018. The launch came eleven days before re:Invent 2026 opened, so it isn't a re:Invent announcement. A related change came earlier: since 9 Sep 2026, functions on Lambda Managed Instances can run for up to 90 minutes when invoked asynchronously or by an event source mapping. Here is what changed, what a long run costs, and what to check before you raise a timeout.

TL;DR

  • The new limit: 30 minutes for on-demand Event Functions, for every invocation type. On Managed Instances, 30 minutes for synchronous calls and 90 minutes for asynchronous and event source mapping calls.
  • Not everything moved: Web Functions stay at 15 minutes. Event source mappings from Amazon MQ and Amazon DocumentDB stay at 14 minutes. So do Kafka mappings created before 19 Nov 2026 that don't use provisioned mode.
  • No new fee: you pay for duration as before. One 30-minute run at 1 GB costs about $0.03 on x86 and $0.024 on Arm (our arithmetic, us-east-1).
  • The traps: by default, API Gateway stops waiting after 29 or 30 seconds while the function runs on. A failing asynchronous call can run, and bill, three times. An SQS queue needs a visibility timeout of at least 3 hours. Concurrency doubles at the same request rate.
  • For work that is costly to redo: AWS suggests pairing the longer timeout with Lambda durable functions, which checkpoint progress.

Event Functions and Web Functions: Lambda's new names

If "Event Function" is new to you, that's because the name is. On 12 Oct 2026, AWS launched Lambda Web Functions and renamed ordinary Lambda functions to Lambda Event Functions, "a naming change only that requires no code changes or redeployments for your existing functions." So an Event Function is the Lambda function you already know: it receives an event, processes it and returns a response.

Lambda now has three form factors:

  • Event Functions, which run on demand (the usual way) or on Lambda Managed Instances, where Lambda runs your functions on EC2 instances it manages for you.
  • Web Functions, which run HTTP servers on Lambda, with many requests handled at once. At launch they support Node.js only, in five Regions.
  • MicroVMs, which give each user or session an isolated environment for running user-generated or AI-generated code.

The 30-minute change is for Event Functions only.

What changed exactly

AWS's What's New post says Lambda now supports "a 30-minute function timeout for Event Functions that run on demand, doubling the 15-minute limit for synchronous, asynchronous, and event source mapping (ESM) invocations." The timeout docs agree: you set it in 1-second steps up to 1,800 seconds. The default is still 3 seconds. Lambda rejects anything higher with a validation error.

AWS Lambda maximum timeouts, December 2026. Event Functions on demand: 30 minutes, was 15, for synchronous, asynchronous and event source mapping invocations; 14 minutes for Amazon MQ, DocumentDB and older Kafka event source mappings. Event Functions on Managed Instances: 30 minutes for synchronous calls; 90 minutes, since 9 Sep 2026, for asynchronous and event source mapping invocations. Web Functions: 15 minutes, with a default request timeout of 30 seconds, not part of the change. Below: a synchronous caller can stop waiting first. API Gateway gives up at 29 to 30 seconds, and the function runs on to its timeout, and you pay for it.

Function kind and invocation

Maximum timeout

Event Functions on demand: synchronous, asynchronous, event source mappings

30 minutes (was 15)

Event Functions on Managed Instances: synchronous

30 minutes (was 15 until 19 Nov 2026)

Event Functions on Managed Instances: asynchronous and event source mappings

90 minutes (since 9 Sep 2026)

Event source mappings from Amazon MQ (ActiveMQ and RabbitMQ) and Amazon DocumentDB

14 minutes

Kafka event source mappings created before 19 Nov 2026 that don't use provisioned mode

14 minutes

Web Functions (request timeout)

15 minutes (default 30 seconds)

Asynchronous calls with durable functions (whole execution)

Up to 1 year

MicroVMs (running and suspended)

8 hours

A few details from AWS's Compute Blog post:

  • The 14-minute mappings: the November post gives 14 minutes (840 seconds) for Amazon MQ and DocumentDB. AWS's September post on Managed Instances said 15 minutes; we use the newer figure.
  • Kafka: to get 30 minutes on Kafka, create a new event source mapping or turn on provisioned mode for the old one. For the 14-minute mappings, keep the function timeout at 840 seconds or less.
  • When it applies: the new timeout applies to invocations that start after you update the function. For event source mappings, allow a few minutes for the change to spread.
  • Nothing else changes: same runtime, handler, IAM role and VPC settings. The Init phase keeps its 10-second limit on demand; provisioned concurrency and SnapStart keep their 15-minute initialization limit.
  • The console: synchronous test invocations now run for up to 30 minutes too.
  • Step Functions and durable functions: a single invocation can run for 30 minutes when called from Step Functions Standard workflows or used with durable functions.

AWS names the workloads it has in mind: AI inference, media transcoding, financial calculations, agentic AI requests, report generation, and ETL steps triggered by SQS or S3.

One note on the 90-minute limit: the September post calls it "a 6x increase from the previous 15-minute limit" for asynchronous and event source mapping calls on Managed Instances, at no extra charge. Synchronous calls on Managed Instances stayed at 15 minutes until the November change raised them to 30. If you set a Managed Instances function to 90 minutes, a synchronous call is still cut off at 30, even though the GetFunctionConfiguration API reports the 90 minutes you configured.

What it costs

The longer timeout has no fee of its own. The baseline is what runs: duration in GB-seconds (memory in GB times seconds) plus $0.20 per million requests. Prices as of 1 Dec 2026, US East (N. Virginia), first price tier, from the Lambda pricing page. Features such as durable functions are charged on top.

  • x86: $0.0000166667 per GB-second.
  • Arm: $0.0000133334 per GB-second.
  • Free tier: 1 million requests and 400,000 GB-seconds a month.

CPU comes with memory: at 1,769 MB a function gets the equivalent of one vCPU, and at the 10,240 MB maximum, up to 6 vCPUs.

One 30-minute run

This is our arithmetic from AWS's published prices, ignoring the free tier: GB-seconds = (memory in MB ÷ 1,024) × 1,800, times the rate, plus one request ($0.0000002). The last column is the worst case for an asynchronous call that fails all three tries (more on that below).

Memory

GB-seconds

x86

Arm

Failing async call, 3 tries (x86 / Arm)

512 MB

900

$0.015

$0.012

$0.045 / $0.036

1 GB

1,800

$0.030

$0.024

$0.090 / $0.072

2 GB

3,600

$0.060

$0.048

$0.180 / $0.144

10 GB

18,000

$0.300

$0.240

$0.900 / $0.720

One run is cheap. Volume is what adds up. By the same arithmetic, 1,000 runs a day at 2 GB on x86 is $60 a day, about $1,800 for a 30-day month. At 10 GB it's $300 a day, about $9,000 a month.

The same half hour on Fargate

For comparison, a 30-minute task on AWS Fargate (Linux, US East), at the nearest Fargate size to each Lambda memory setting. Again our arithmetic, from the Fargate pricing page ($0.000011244 per vCPU-second and $0.000001235 per GB-second on x86):

Lambda memory (about this many vCPU)

Nearest Fargate task

Fargate x86 / Arm

Lambda x86 / Arm

512 MB (about 0.29)

0.25 vCPU, 0.5 GB

$0.0062 / $0.0049

$0.0150 / $0.0120

1 GB (about 0.58)

0.5 vCPU, 1 GB

$0.0123 / $0.0099

$0.0300 / $0.0240

2 GB (about 1.16)

1 vCPU, 2 GB

$0.0247 / $0.0197

$0.0600 / $0.0480

10 GB (about 5.8)

4 vCPU, 10 GB (fewer vCPU)

$0.1032 / $0.0826

$0.3000 / $0.2400

10 GB (about 5.8)

8 vCPU, 16 GB (more vCPU)

$0.1975 / $0.1580

$0.3000 / $0.2400

For the same half hour of compute, Fargate costs roughly 40% of the Lambda price at the closest size. At 10 GB, where the nearest Fargate sizes have fewer or more vCPU, it's between about a third and two thirds. But the comparison isn't like for like:

  • Fargate bills from the moment it starts pulling your container image until the task stops, with a 1-minute minimum.
  • Fargate sizes are fixed vCPU and memory pairs, and Lambda gives a fraction of a vCPU in proportion to memory, so the match is approximate.
  • You build the event wiring yourself. AWS's Fargate or Lambda guide says "Fargate is not natively event-driven."

AWS's own summary in that guide: "you typically pay less with Lambda at lower traffic volumes. However, the per-second resource billing of Fargate tends to be more economical for sustained, high-throughput workloads."

Lambda Managed Instances pricing

Managed Instances are priced differently. You don't pay per GB-second of duration. You pay $0.20 per million requests, the EC2 On-Demand price of the instances, and a management fee of 15% on top of that price for CPU instance types (9.75% for GPU G-series).

AWS's example uses an m7g.xlarge (4 vCPU, 16 GB) at $0.1632 an hour in US East. With the 15% fee that is about $0.188 an hour, or about $0.094 for 30 minutes, and one instance can handle several invocations at once. But Lambda launches three instances by default for Availability Zone resiliency, so the smallest fleet costs about $0.56 an hour before any Savings Plan. That's why AWS calls Managed Instances "Ideal for steady-state workloads without unexpected traffic spikes."

What to check before you raise a timeout

Setting 1,800 seconds is one line. The rest of your system has to be ready for it.

Synchronous callers give up early

Lambda's docs on calls from other services are direct: "When a service invokes your function synchronously, the service might stop waiting for the response before your function finishes. Your function keeps running until it returns or reaches its timeout, and you're charged for that duration."

  • API Gateway REST APIs wait 29 seconds by default. Regional and private APIs can raise this, though it might lower your account's throttle quota in that Region; edge-optimized APIs can't. AWS doesn't publish the highest raised value.
  • API Gateway HTTP APIs wait 30 seconds at most, and that can't be changed.
  • Cognito user pool triggers wait 5 seconds.
  • Step Functions and Lambda function URLs wait until the function returns. AWS names Step Functions Standard workflows as supported; Express workflows have their own shorter limit, so check it before you use one.
  • Application Load Balancers wait until the function responds or times out, per the ELB docs. The load balancer also has an idle timeout, 60 seconds by default; we couldn't confirm from AWS's docs whether it cuts off a Lambda target that is quiet for longer, so test it.
  • Your own SDK or CLI calls: set the client's read timeout higher than the function timeout and turn on TCP keep-alive. With the AWS CLI, --cli-read-timeout 0 waits with no time limit.
  • NAT gateways drop idle connections after 350 seconds, so a function that talks out through one should send keep-alive packets.

So a 30-minute timeout behind API Gateway doesn't give the user a 30-minute response. By default, it gives them an error after 29 or 30 seconds and you a bill for the rest. For long work behind an API, hand the job off and let the caller check back.

Asynchronous retries can bill three times

One failing async event, three 30-minute runs. An event from S3, SNS or EventBridge starts try 1, which runs 30 minutes and times out. After a 1-minute wait, try 2 runs 30 minutes and times out. After a 2-minute wait, try 3 runs 30 minutes and times out. The event then goes to a dead-letter queue or on-failure destination. Up to 90 minutes billed for one event: at 2 GB on x86, 0.06 dollars a try, 0.18 dollars in all.

S3, SNS, EventBridge rules and EventBridge Scheduler call Lambda asynchronously. Per the async error docs, if the function returns an error, "by default Lambda attempts to run it two more times", one minute after the first try and two minutes after the second. A timeout counts as an error. So a function that hangs until its 30-minute timeout can run for 90 minutes on one event before Lambda sends it to your dead-letter queue or on-failure destination. If a retry can't succeed, lower the retry count, and always set a failure destination.

SQS: a visibility timeout of at least 3 hours

AWS says to set the queue's visibility timeout to at least six times the function timeout: at least 3 hours for a 30-minute function. If you use a batching window, add MaximumBatchingWindowInSeconds to that. The catch, from the SQS event source docs: Lambda checks this when you create or update the event source mapping, but "doesn't check this requirement when you change the function timeout." Raise the function timeout past the queue's visibility timeout and messages can reappear while your function is still working on them, so they get processed twice. Raise the queue's visibility timeout first. For a 90-minute function on Managed Instances, the same rule gives 9 hours.

Kinesis and DynamoDB Streams read slower

Lambda processes one batch per shard at a time by default, so longer runs slow down how fast each shard is read. Watch the IteratorAge metric and raise the parallelization factor (1 to 10) if records back up. Turn on partial batch failure reporting so only the failed records are retried.

Concurrency doubles at the same rate

Concurrency is requests per second times average duration in seconds. AWS's example: one request a second at 30 minutes each needs 1,800 concurrent executions. The default concurrency quota is 1,000 across all Event Functions in a Region. So one long job a second would use up a default account's concurrency and throttle every other function in that Region. Work out the concurrency your long jobs will need, and check it against your quota, before you raise the timeout.

Make the work idempotent

AWS's post: "Lambda does not guarantee exactly-once processing, and longer-running functions widen the window for retries and duplicate deliveries." Payments, database writes and anything else with side effects should be safe to run twice. AWS points to Powertools for AWS Lambda for this.

Connections and credentials can expire mid-run

A connection to Amazon RDS, Amazon ElastiCache or an outside API that idles for 20 minutes may be closed under you. Check those idle timeouts, and check that any temporary credentials or tokens last for the whole run, or refresh them. AWS also warns that the AWS SDK for Java relies on the JVM's DNS cache, which on some setups never refreshes; set a short DNS TTL, such as 5 seconds.

Alarms and observability

CloudWatch metrics, CloudTrail and X-Ray capture the whole run as before. A higher timeout also hides hung functions: a function that used to fail at 15 minutes now runs, and bills, for 30. Our suggestion, not AWS's: alarm on the p99 Duration getting close to the timeout, on Throttles, and on spend with an AWS Budgets alert. And don't set the maximum just because you can: that's our advice. AWS's timeout docs warn the other way, that a timeout close to the average duration risks unexpected timeouts, so leave headroom over the typical run, not more.

Durable functions for work that is costly to redo

A longer timeout doesn't save your progress. AWS's example: "A 25-minute inference run that fails at minute 22 restarts from zero without checkpoints, but resumes from its last checkpoint with durable functions." Lambda durable functions, launched on 2 Dec 2025, checkpoint progress, can wait for up to a year, and recover from failures. The function timeout (--timeout) still limits each invocation; the durable execution timeout (ExecutionTimeout in --durable-config) limits the total time. Waits don't bill duration on demand, but durable operations, data written and retention are charged.

AWS's rule: for idempotent jobs, such as an ETL step triggered by SQS, "the extended timeout alone might be enough." For work that is costly to redo, "combine the extended timeout with durable functions."

30-minute Lambda or something else?

  • Lambda on demand, up to 30 minutes: for event-driven work that runs past 15 minutes, with spiky or steady traffic, and no more workarounds such as splitting a job into chunks.
  • Lambda Managed Instances, up to 90 minutes: asynchronous or event source mapping work between 30 and 90 minutes, with steady, high-volume traffic. AWS's compute decision guide sends you here "For steady, high-volume traffic or specific Amazon EC2 hardware or pricing". Spiky work doesn't justify the always-on fleet.
  • Durable functions: when your logic is mostly in Lambda code and has many steps, long waits or approvals.
  • Step Functions: when you're orchestrating several AWS services and want native integrations (220+ services) or a visual workflow. Standard workflows can run for up to a year and wait for a 30-minute function.
  • Fargate or ECS: for "long-running processes, or workloads that need more runtime control", continuous compute, persistent connections, or a single run longer than 90 minutes that can't be split into durable steps or a state machine. Fargate has no hard limit on run time.
  • AWS Batch: for "large-scale batch or high performance computing (HPC) jobs".

One warning if you're reading AWS's docs: the "AWS Fargate or AWS Lambda?" guide, last updated 21 Aug 2026, still says "Lambda functions have a maximum execution time of 15 minutes per invocation". It predates both the 30-minute launch and the Event Functions name. Some pages haven't caught up yet.

How to set a 30-minute timeout

In the Lambda console, set the timeout in the function's configuration. With the AWS CLI, the timeout is in seconds:

Shell
aws lambda update-function-configuration \  --function-name my-function \  --timeout 1800

Before you run it: raise any SQS queue's visibility timeout to at least 3 hours, check what calls the function and how long it waits, and check your concurrency. The new value applies to invocations that start after the update.

Common questions

What is the maximum Lambda timeout?

30 minutes (1,800 seconds) for Event Functions, since 19 Nov 2026, except for Amazon MQ, DocumentDB and older non-provisioned Kafka event source mappings, which stay at 14 minutes. On Lambda Managed Instances, asynchronous and event source mapping calls can run for 90 minutes (5,400 seconds). Web Functions stay at 15 minutes. With durable functions, an asynchronous execution can span up to a year, across many invocations.

Does a longer timeout cost more?

Not by itself. There's no fee for the setting, and you pay only for the time the function actually runs. But a longer timeout lets slow, hung or retried runs bill for longer: a failing asynchronous call at 30 minutes can bill 90 minutes.

Can API Gateway wait 30 minutes?

Not by default. HTTP APIs wait 30 seconds at most, and that can't be changed. REST APIs wait 29 seconds by default; Regional and private REST APIs can be raised, but AWS doesn't publish how far, and raising it can lower your throttle quota. Meanwhile the function keeps running, and billing, after API Gateway gives up. For long jobs, start the work asynchronously and return a job ID.

More from the blog