debugging-lambda-timeouts

작성자: aws

AWS Lambda 함수 타임아웃 실패를 함수 구성, CloudWatch 로그 및 메트릭, VPC/네트워킹, 콜드 스타트 등을 체계적으로 분석하여 디버깅합니다.

npx skills add https://github.com/aws/agent-toolkit-for-aws --skill debugging-lambda-timeouts

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

The function may not have been invoked recently or logging may be disabled. Check the function's log group configuration and invocation metrics.

Access denied errors

Verify AWS credentials have permissions for Lambda, CloudWatch Logs, and CloudWatch Metrics. See the full procedure for details.

Log query time range issues

If CloudWatch Logs Insights queries fail with time range errors, reduce the analysis window or check log group retention settings. See the full procedure for details.

aws의 다른 스킬

agents-build
aws
Use to extend an existing agent project with memory, app integration, VPC, multi-agent, migration, model, browser, code interpreter, payments, or resource…
official
agents-connect
aws
Use when connecting your agent to external APIs, tools, or services via Gateway, or restricting tool access with Cedar policies. Handles gateway setup, target…
official
agents-debug
aws
Use when your agent or environment is broken — wrong answers, errors, timeouts, tool failures, or CLI issues. Reads traces and logs to diagnose root causes.…
official
agents-deploy
aws
에이전트를 AWS에 배포할 때 또는 배포가 실패했을 때 사용합니다. 사전 검증, CDK/IAM/할당량 오류 진단, 버전 관리, 롤백 등을 처리합니다.
official
agents-get-started
aws
개발자가 새 에이전트 프로젝트를 만들거나 AgentCore를 시작하려 할 때 사용합니다. 프레임워크 선택, 프로젝트 스캐폴딩, 첫 배포 등을 처리합니다.
official
agents-harden
aws
Use when preparing your agent for production — IAM scoping, inbound auth (JWT, SigV4), secrets management, cold start optimization, session lifecycle, rate…
official
agents-pay
aws
Use when THIS agent needs to pay for x402-protected content at runtime: hitting a paywall mid-task, settling it via AgentCore Payments, and applying…
official
amazon-aurora-mysql
aws
Amazon Aurora MySQL — Aurora MySQL 클러스터를 구체적으로 생성, 수정, 조언합니다(MySQL 호환 엔진, Aurora serverless, 병렬 쿼리).…
official