aws avatar

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-code

Installs 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
1aws avataraws-lambda-durable-functionsaws/agent-toolkit-for-awsBuilds resilient, long-running, multi-step applications with AWS Lambda durable functions with automatic state persistence, retry logic, and orchestration for l6.2Kskills.sh installs
2forcedotcom avatarplatform-metadata-api-context-getforcedotcom/sf-skillsREQUIRED companion for Salesforce metadata generation — load this schema/API-context skill in the SAME turn as ANY metadata generation skill; if you load a gene6.2Kskills.sh installs
3aws avataraws-lambda-managed-instancesaws/agent-toolkit-for-awsEvaluates, configures, and migrates workloads to AWS Lambda Managed Instances (LMI). Runs Lambda functions on EC2 instances in the user's account while AWS mana6.2Kskills.sh installs
4affaan-m avatarredis-patternsaffaan-m/eccRedis data structure patterns, caching strategies, distributed locks, rate limiting, pub/sub, and connection management for production applications.5.7Kskills.sh installs
5github avatarwinmd-api-searchgithub/awesome-copilotFind and explore Windows desktop APIs. Use when building features that need platform capabilities — camera, file access, notifications, UI controls, AI/ML, sens5.7Kskills.sh installs
6affaan-m avatarx-apiaffaan-m/everything-claude-codex api4.5Kskills.sh installs