debugging-lambda-timeouts

von aws

Debugs AWS Lambda function timeout failures by systematically analyzing function configuration, CloudWatch logs and metrics, VPC/networking, cold starts,…

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.

Mehr Skills von 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
Verwenden Sie dies, wenn Sie Ihren Agenten über Gateway mit externen APIs, Tools oder Diensten verbinden oder den Toolzugriff mit Cedar-Richtlinien einschränken. Behandelt Gateway-Einrichtung, Ziel…
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
Verwenden Sie dies beim Bereitstellen Ihres Agents auf AWS oder wenn eine Bereitstellung fehlgeschlagen ist. Behandelt Pre-Flight-Validierung, CDK/IAM/Quota-Fehlerdiagnose, Versionsverwaltung, Rollback,…
official
agents-get-started
aws
Verwenden Sie, wenn ein Entwickler ein neues Agent-Projekt erstellen oder mit AgentCore beginnen möchte. Behandelt Framework-Auswahl, Projekt-Gerüstbau, erste Bereitstellung und…
official
agents-harden
aws
Verwenden Sie dies, wenn Sie Ihren Agenten für die Produktion vorbereiten — IAM-Scoping, eingehende Authentifizierung (JWT, SigV4), Geheimnisverwaltung, Cold-Start-Optimierung, Sitzungslebenszyklus, Rate…
official
agents-pay
aws
Verwenden, wenn DIESER Agent zur Laufzeit für x402-geschützte Inhalte zahlen muss: eine Paywall mitten in der Aufgabe treffen, diese über AgentCore Payments abwickeln und anwenden…
official
amazon-aurora-mysql
aws
Amazon Aurora MySQL — creates, modifies, and advises on Aurora MySQL clusters specifically (MySQL-compatible engine, Aurora serverless, parallel query).…
official