
Debugging Lambda Timeouts
When your Lambda hits timeout and you're digging through CloudWatch logs trying to figure out why, this walks you through a systematic investigation. It checks the obvious stuff like timeout configuration and memory settings, then digs into cold starts, VPC networking issues, downstream dependencies, and code patterns that burn through execution time. The structured procedure keeps you from randomly guessing or missing something critical when you're under pressure to fix it. Most useful when you're dealing with intermittent timeouts or inheriting someone else's Lambda that's mysteriously slow, since it forces you to look at metrics and logs in a specific order rather than just bumping the timeout and hoping.
- skills.sh installs
- 6.8K
- GitHub stars
- 3.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aws/agent-toolkit-for-aws --skill debugging-lambda-timeouts --agent claude-codeInstalls into .claude/skills of the current project.
Files
Debugging Lambda Timeouts
Overview
Domain expertise for systematically investigating AWS Lambda function timeout failures by analyzing function configuration, CloudWatch logs, metrics, dependencies, cold start patterns, and code. Identifies common causes such as insufficient timeout settings, external service delays, database connection issues, memory constraints, and inefficient code patterns, then provides prioritized recommendations.
Debug a Lambda timeout
To investigate and resolve Lambda timeout issues, follow the procedure exactly. See Lambda timeout debugging procedure.
The procedure collects function configuration, CloudWatch metrics and logs, dependency analysis, and cold start patterns. If Lambda code is provided, it also reviews the code for timeout-prone patterns. Results are compiled into a structured debugging report with prioritized recommendations.
Troubleshooting
Function not found
Verify the function name and region. Use aws lambda list-functions --region <region>
to list available functions.
No logs available
Sponsors
Details
- Repository
- github.com/aws/agent-toolkit-for-aws
- Categories
- Backend & APIs, AI & Agent Building, Debugging, Cloud & Infrastructure
- First seen
- May 16, 2026
More from aws/agent-toolkit-for-aws
All 56- Setting Up Cloudwatch Alarm Notifications6.8K
- Launching Ec2 Instance With Best Practices6.8K
- Troubleshooting S3 Files6.7K
- Creating Api Gateway Stage6.7K
- Setting Up Ec2 Instance Profiles6.6K
- Creating Production Vpc Multi Az6.6K
- Signing In To Aws6.6K
- Aws Transform6.5K
- Connecting Vpcs With Peering6.5K
- Enabling Lambda Vpc Internet Access6.5K
- Exporting Rds To S36.5K
- Setting Up Cloudtrail Multi Region6.5K
- Routing Traffic With Route53 And Cloudfront6.5K
- Creating Amazon Aurora Db Cluster With Instances6.4K
- Troubleshooting Efs6.3K
- Aws Lambda Durable Functions6.2K
- Aws Lambda Managed Instances6.2K
- Aws Cleanrooms6.1K
- Aws Lambda Microvms6.1K
- Amazon Aurora Postgresql6K
- Querying Aws S36K
- Amazon Opensearch Service6K
- Aws Blocks5.9K
- Querying Aws Cloudwatch5.9K