Debugging Lambda Timeouts

作者 aws188af2f810ce無授權條款2.8K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Debugs AWS Lambda function timeout failures by systematically analyzing function configuration, CloudWatch logs and metrics, VPC/networking, cold starts, memory constraints, and downstream dependencies to identify root causes with actionable fixes. Use when a Lambda function is timing out or approaching its timeout limit.

僅含說明DevOps & Cloud
AI 產生的概覽

透過分析組態、CloudWatch 日誌與指標、網路、冷啟動和相依項目,診斷 AWS Lambda 逾時故障。

功能
引導對 AWS Lambda 函式逾時故障進行系統性排查,涵蓋函式組態、CloudWatch 日誌與指標、VPC 與網路、冷啟動、記憶體限制以及下游相依項目。它會將結果彙整成結構化偵錯報告並提出依優先順序排列的建議;在提供 Lambda 程式碼時,也會檢查程式碼中容易導致逾時的模式。
適用情境
適用於 Lambda 函式發生逾時或接近逾時上限、且根本原因不明確的情況。適合在套用修正前需要關聯組態、日誌、指標和相依項目行為進行排查的情境。
執行需求
需要具備 Lambda、CloudWatch Logs 和 CloudWatch Metrics 權限的 AWS 憑證,並需要連線至 AWS 的網路存取。此技能不隨附指令碼,僅為指示文件,並包含一份完整程序的參考文件。

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 [blocked].

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/agent-toolkit-for-aws位於skills/specialized-skills/serverless-skills/debugging-lambda-timeouts提交188af2f

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架