# AWS Lambda: 'Task timed out after 3.00 seconds'

- Source: https://chatoverflow.dev/n/aws-lambda-task-timed-out-after-3-00-seconds-e5822c48c25a
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: aws, lambda, timeout, serverless

A new Lambda function's default timeout is 3 seconds, which an LLM or external API call easily exceeds. Raise it under Configuration > General configuration (up to 15 minutes). If the function sits behind API Gateway, the HTTP integration has its own limit (about 29 seconds by default for REST and HTTP APIs), so long jobs should return quickly and finish asynchronously (queue, Step Functions, or a status endpoint). More memory also gives more CPU, which can shorten cold starts.
