AWS Lambda Doubles Execution Timeout to 30 Minutes
Contents
Amazon Web Services (AWS) increased the maximum execution timeout for on-demand Lambda Event Functions from 15 to 30 minutes (1,800 seconds). The 15-minute limit had stood since 2018, following the original 60-second limit at launch in 2014 and a bump to five minutes in 2015. The change applies across all commercial regions for synchronous, asynchronous, and event source mapping invocations under standard pricing, with no special opt-in required.
Configuration and timeout history
Extending the execution duration requires updating the timeout setting on the target function. Specifying any value above 1,800 seconds produces a validation error.
aws lambda update-function-configuration \
--function-name my-demo-function \
--timeout 1800AWS pointed to agentic AI workflows, which run consecutive LLM reasoning steps and external tool calls, as a primary reason for the change. Other target workloads include media transcoding, large analytical reports, and Monte Carlo simulations that exceed 15 minutes.
Concurrency and infrastructure considerations
Teams need to review account capacity before increasing function durations. Concurrency equals requests per second multiplied by average runtime in seconds. At the same traffic level, a task running for 30 minutes uses twice the concurrency of a 15-minute job. Receiving just 1 request per second that runs for 30 minutes ties up 1,800 concurrent executions, quickly exhausting regional account limits.
Impact on connected services
A longer duration changes how dependent services behave:
- Amazon SQS: Recommended queue visibility timeouts should be at least six times the function timeout, which requires a three-hour window for a 30-minute job.
- Streaming Services: Kinesis and DynamoDB Streams process one batch per shard at a time, so prolonged executions will create shard-level lag.
- Network Timeouts: AWS NAT Gateways still drop idle TCP connections after 350 seconds, and the container Init phase keeps its 10-second ceiling.
A longer timeout lets teams skip spinning up ECS or AWS Fargate for medium-length jobs, but the function still bills for allocated memory throughout the entire run. Workflows that require intermediate checkpoints and state management still run more reliably on Step Functions paired with containers.