Terminal
Terminal/Skill
Helps find why an AWS Lambda function times out by checking its config, CloudWatch logs and metrics, networking, and downstream dependencies, with fixes.
By Amazon Web Services
Works with
npx skills add aws/agent-toolkit-for-aws --skill debugging-lambda-timeoutsDomain 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.
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.
Verify the function name and region. Use aws lambda list-functions --region <region>
to list available functions.
The function may not have been invoked recently or logging may be disabled. Check the function's log group configuration and invocation metrics.
Verify AWS credentials have permissions for Lambda, CloudWatch Logs, and CloudWatch Metrics. See the full procedure for details.
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.