Lambda's timeout sat at 15 minutes for eight years. It is now 30 for Event Functions running on demand. Doubling a number is easy. Making it safe is the bit AWS spends half its launch post on, and that half is the part worth your time.

Going by the AWS Compute Blog post from 19 November, here is the checklist I'd run before touching --timeout.

What actually changed

  • Event Functions on demand: up to 30 minutes (1,800 seconds) for synchronous, asynchronous and event source mapping (ESM) invocations.
  • Lambda Managed Instances: synchronous goes to 30 minutes too. Async and ESM keep the 90-minute limit announced in September.
  • Standard Lambda pricing applies. Available in all commercial Regions for on-demand functions.
  • The Init phase limit is unchanged: 10 seconds on demand.

Setting it is one line:

aws lambda update-function-configuration \ --function-name my-demo-function \ --timeout 1800 \ --region us-east-1 

In SAM it is Timeout: 1800. The new value applies to invocations that start after the update, and for ESMs the post says to allow a few minutes for it to propagate.

Check 1: concurrency doubles

Concurrency is requests per second multiplied by average duration. AWS's own example: one request per second at 30 minutes each needs 1,800 concurrent executions. If your jobs really do run longer now, your account concurrency quota and any reserved concurrency settings need a look first. This is the one most likely to bite quietly.

Check 2: who is calling you synchronously

If another AWS service invokes the function synchronously, that service applies its own timeout. Raising the Lambda value does nothing if the caller gives up at 29 seconds. Your own SDK client needs read and socket timeouts longer than the function timeout too.

Check 3: SQS visibility timeout

The post says to set the queue visibility timeout to at least six times the function timeout. For a 30-minute function that is at least 3 hours. Lambda validates this when you create the mapping, but it will not stop you changing the queue or function later and creating a mismatch. I'd put that in a CI check.

Check 4: connections and credentials

A NAT gateway drops idle connections after 350 seconds, so long calls need keep-alives. Downstream idle timeouts (RDS, ElastiCache, external APIs) must cover the whole run. If you fetch temporary credentials or tokens at start, make sure they last, or refresh them in the background.

Check 5: Kafka, MQ and DocumentDB

These do not all get the new limit. Amazon MQ and DocumentDB mappings stay at 14 minutes, and so do Kafka mappings created before 19 November 2026 that are not in provisioned mode. Keep those functions at 840 seconds or less, or create a new mapping or turn on provisioned mode.

Check 6: idempotency

Longer runs widen the window for retries and duplicates. AWS points at Powertools for AWS Lambda for idempotent operations.

Timeout versus durable functions

I'd keep the two ideas apart. The timeout caps one invocation. Durable functions checkpoint progress, so a 25-minute inference run that dies at minute 22 resumes from its last checkpoint instead of starting again. AWS makes the same point: for idempotent SQS-driven ETL the longer timeout may be enough, but where re-running is expensive, combine it with durable functions.

My view: 30 minutes removes a lot of "we had to move this to Fargate" decisions, but not the ones driven by cost at sustained high concurrency. Do the arithmetic on concurrency before celebrating.

I have not run any of this myself yet; everything above is from the launch post. Next step for me is a test function at 1,800 seconds behind an SQS queue to see how the visibility timeout validation behaves.

Sources

Drafted with AI assistance. I review and edit every post.