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のその他のスキル

analyzing-release-readiness
aws
GitHub PR、GitLab MR、またはローカルブランチに対して、マージ前のリリース準備状況レビューをトリガーします。ユーザーがコード変更をリスク、正確性、…について分析したい場合に使用します。
scanning-with-aws-security-agent
aws
ワークスペースでAWS Security Agentスキャンを実行します — ソースをAWSにアップロードし、マネージドSecurity Agentサービスでスキャンし、ランク付けされ検証済みの…を返します。
coordinating-multi-space-devops-agent
aws
1つのClaude Codeセッションから、複数のAgentSpacesにわたってAWS DevOps Agentを調整します — 質問を適切なスペース(prod vs staging vs knowledge)にルーティングし、…
aws-security
aws
AWSセキュリティサービスとワークフローをカバー — Security Hub V2(OCSF)の検出結果、コネクタ、アグリゲータ、自動化ルール、セキュリティ態勢の要約;…
querying-aws-sagemaker-catalog
aws
SageMaker Catalogのアセットメタデータテーブル(Apache IcebergとしてS3 Tablesにエクスポート)に対してSQL分析を実行します。ガバナンスクエリ、アセット成長の追跡などをカバーします。
agents-connect
aws
エージェントをGateway経由で外部API、ツール、またはサービスに接続する場合、またはCedarポリシーでツールアクセスを制限する場合に使用します。ゲートウェイのセットアップ、ターゲット…
aurora-dsql
aws
Aurora DSQLクラスターのプロビジョニングと管理、psqlまたはDSQL Connectorsを介した接続、スキーマの管理、クエリの実行、MySQLからの移行、クエリプランの診断、…
transitgateway
aws
AWS Transit Gatewayを設定します:ハブを作成しVPCを接続し、ルートテーブルでトラフィックをセグメント化し、ハブを通じてegressとインスペクションを集中管理します…