AWS Lambda Timeout
A timeout is a symptom. Trace the invocation from trigger → initialization → application code → dependency → response.
Diagnose
- Compare average and p95/p99 duration with the configured timeout.
- Inspect logs for the last completed operation.
- Measure database, HTTP, S3, Bedrock, or other downstream calls independently.
- If Lambda runs in a VPC, verify the required private/public connectivity path.
- Check concurrency, throttling, and retry behavior.
Fix → Verify → Prevent
Fix the slow layer rather than blindly increasing the timeout. Verify with a representative request and add alarms around duration, errors, and throttles.