Lambda Timeout Troubleshooter
Quick start
- Symptom → layer map (first plausible match drives the first probe):
Every invocation times out at exactly Timeout with the same last log
line → TIMEOUT_DOWNSTREAM / TIMEOUT_HTTP_CLIENT; timeout with zero
application log lines → TIMEOUT_INIT_PHASE; bursty timeouts correlated
with traffic peaks → TIMEOUT_SDK_RETRY_STORM / TIMEOUT_DB_CONNECTION;
Step Functions
Task States.Timeout → TIMEOUT_STEP_FUNCTIONS_MISMATCH;
API Gateway 504 on sync invoke → TIMEOUT_ASYNC_APIGW; first invocation
of provisioned alias times out → TIMEOUT_PROV_CONCURRENCY_INIT;
MaxMemoryUsed ≈ MemorySize alongside timeout → TIMEOUT_OOM_BEFORE_TIMEOUT.
- The init phase has its own timeout budget. Lambda's init phase
(cold start) shares the configured Timeout with the invoke phase. A
Java/Spring function with a 7-second init and a 5-second configured
Timeout fails on every cold start with
TaskTimeoutException and zero
application logs — the handler never ran. SnapStart (Java) eliminates
this entirely by restoring from a snapshot in 50-200 ms.
- SDK retries multiply the worst-case wall clock. AWS SDK v3 default
is 3 retries with exponential backoff. A Lambda with Timeout:30s
calling a downstream that hangs 9s per attempt sees 9+0.1+9+0.2+9+0.4
≈ 28s before the final attempt even starts — the SDK burns the budget
while the function appears "stuck on one call." Set SDK
maxAttempts: 0
and let Lambda-level retries handle failure recovery.
- HTTP clients ship with no connect timeout by default.
axios,
Node fetch, Python requests default to no connect timeout — a dead
host consumes the entire Lambda Timeout on a single TCP SYN. Always
pass an explicit { timeout: 3000 } (axios) or Timeout(connect=0.5, read=3) (requests) config.
- VPC cold-start ENI latency was eliminated in 2019. Hyperplane ENIs
are pre-provisioned shared resources; a VPC-attached Lambda no longer
pays per-function ENI creation on cold start. If a 2019 blog post or
legacy runbook claims "VPC attachment adds 10s cold start for ENI
creation," it is outdated — do NOT declare TIMEOUT_VPC_ENI without
positive evidence.
- OOM masquerades as timeout. A function that hits MemorySize near
the Timeout boundary may be killed by the OOM killer before the
service's timeout SIGKILL fires — CloudWatch shows Duration ≈ Timeout
AND MaxMemoryUsed ≈ MemorySize. Always cross-check both metrics before
declaring TIMEOUT_CONFIG.
Mindset
A TaskTimeoutException is the Lambda service telling you the function
exceeded its wall-clock budget. The configured Timeout is rarely the
fix — it is the boundary. The actual root cause is what consumed the
budget: init phase, downstream call, retry multiplier, HTTP client
default, DB handshake, or another layer. Senior serverless engineers
raise the timeout only as a stopgap; they identify the budget consumer.
Philosophy
Moved verbatim → references/advanced-patterns.md § "Philosophy — five senior behaviours".
Load when: calibrating judgement before probing — init wall clock, SDK retry multiplier, hyperplane ENIs, Step Functions vs Lambda, API Gateway 29 s.
Quick reference — timeout triage table
| Symptom pattern |
Most likely layer |
First probe |
| Every invocation times out at exactly Timeout; same last log line |
TIMEOUT_DOWNSTREAM |
CloudWatch Duration p99 vs Timeout; downstream service metrics |
| Timeout with ZERO application log lines |
TIMEOUT_INIT_PHASE |
CloudWatch InitDuration; SnapStart / Runtime; MemorySize |
| Bursty timeouts correlated with traffic peaks |
TIMEOUT_SDK_RETRY_STORM |
Log lines "retrying (attempt N of M)"; SDK maxRetries config |
| "await axios.get(...)" then nothing |
TIMEOUT_HTTP_CLIENT |
axios/fetch/requests config for connect & read timeouts |
| "Connection acquired" / "Connecting to DB" then nothing |
TIMEOUT_DB_CONNECTION |
DB max_connections, RDS Proxy presence, TLS handshake time |
Step Functions States.Timeout on Lambda Task |
TIMEOUT_STEP_FUNCTIONS_MISMATCH |
Step Functions TimeoutSeconds vs Lambda Timeout |
| API Gateway 504 on sync invoke; Lambda continues |
TIMEOUT_ASYNC_APIGW |
API Gateway 29s cap vs Lambda Timeout |
| First invocation of provisioned alias times out |
TIMEOUT_PROV_CONCURRENCY_INIT |
ProvisionedConcurrencySpilloverInvocations; SnapStart on Java |
| MaxMemoryUsed ≈ MemorySize alongside timeout |
TIMEOUT_OOM_BEFORE_TIMEOUT |
CloudWatch MemoryUtilization; raise memory first |
| "spawning child process" then nothing |
TIMEOUT_CHILD_PROCESS |
fork/exec overhead; child_process.exec timeout |
| EFS mount then nothing |
TIMEOUT_EFS_MOUNT |
FileSystemConfigs; EFS MountStatus; cross-AZ mount |
| None of the above, regional Lambda event |
INSUFFICIENT_DATA → escalate |
AWS Health describe-events |
Pre-flight: function state and gather-info gate
Pre-flight commands
Moved verbatim → references/diagnostic-commands.md § "Pre-flight commands".
Load when: running live-account probes — function config, Duration/Memory metrics, timeout logs, X-Ray traces.
If the input is malformed (missing FunctionName, absent symptom, no
REPORT log line or Duration metric), emit INSUFFICIENT_DATA with the
missing pieces (qualifier, Timeout, Duration p99/Maximum, last log
line before each Task timed out entry).
Process — Timeout diagnostic decision tree
The tree is symptom-driven. Pick the entry point based on the observed
pattern, then walk the probes in order. Never emit ROOT_CAUSE_IDENTIFIED
without a failing probe that matches the symptom.
Step 0: Non-obvious behaviours that change timeout diagnosis
Moved verbatim → references/advanced-patterns.md § "Step 0: Non-obvious behaviours".
Load when: the symptom is ambiguous — init-vs-invoke budget, SnapStart, retry multiplier, connect/request timeouts, spillover, OOM masking.
Step 1: Symptom entry — pick the diagnostic branch
| Symptom |
Branch |
Every invocation times out; Duration.Maximum == Timeout; same last log line |
Step 2 |
Timeout with ZERO application log lines; InitDuration > 1s |
Step 3 |
| Bursty timeouts; "retrying (attempt N of M)" in logs |
Step 4 |
Last log is axios.get / fetch / requests.get |
Step 5 |
| Last log is "Connecting to DB" / "Connection acquired" |
Step 6 |
Caller is Step Functions; States.Timeout on Task |
Step 7 |
| Caller is API Gateway; 504 to client |
Step 8 |
| Provisioned alias; spillover invocations time out |
Step 9 |
MaxMemoryUsed ≈ MemorySize alongside timeout |
Step 10 |
| VPC / EFS / child process |
Step 11 |
| None of the above |
Step 12 |
Step 2: TIMEOUT_CONFIG vs TIMEOUT_DOWNSTREAM
Moved verbatim → references/diagnostic-commands.md § "Step 2 probe commands".
Load when: running the live probe for this branch.
Decision rule:
p99 and Maximum both ≈ Timeout on every invocation → TIMEOUT_CONFIG
(timeout too low). Fix: raise Timeout.
p99 just above Timeout but p50 well below → TIMEOUT_DOWNSTREAM
(intermittent downstream latency). Fix: address the downstream.
Maximum == Timeout but p99 well below → bursty failure under load →
check Step 4 (SDK retry) and Step 5 (HTTP client).
Step 3: TIMEOUT_INIT_PHASE — init exceeds the budget
Symptom: TaskTimeoutException with ZERO application log lines on cold
starts. Warm invocations succeed. InitDuration is high.
Moved verbatim → references/diagnostic-commands.md § "Step 3 probe commands".
Load when: running the live probe for this branch.
| Function profile |
Verdict / fix |
| Java 11/17/21, SnapStart not enabled |
ROOT_CAUSE_IDENTIFIED, TIMEOUT_INIT_PHASE. Fix: enable SnapStart (--snap-start ApplyOn=PublishedVersion) and publish a new version. |
| Non-Java with heavy init |
ROOT_CAUSE_IDENTIFIED, TIMEOUT_INIT_PHASE. Fix: raise MemorySize; defer heavy module loads to first invoke. |
| Container function with > 500 MB image |
ROOT_CAUSE_IDENTIFIED, TIMEOUT_INIT_PHASE. Fix: reduce image size. |
Step 4: TIMEOUT_SDK_RETRY_STORM — exponential backoff multiplier
Symptom: bursty timeouts correlated with traffic peaks. Logs contain
"Retrying request ... attempt N of M" before the kill.
Moved verbatim → references/diagnostic-commands.md § "Step 4 probe commands".
Load when: running the live probe for this branch.
AWS SDK v3 default is maxRetries: 3. With exponential backoff, worst-
case wall clock is (maxRetries + 1) × requestTimeout + sum(backoff).
For requestTimeout: 9000, this is ~28s on a Lambda with Timeout: 30.
Verdict: ROOT_CAUSE_IDENTIFIED, LAYER: TIMEOUT_SDK_RETRY_STORM.
Fixes:
- Set SDK
maxAttempts: 0 and let Lambda / Step Functions handle retries.
- Or set
requestTimeout: <Timeout / (maxRetries + 1) - headroom>.
- Or move to async invocation so attempt failures don't consume wall clock.
Step 5: TIMEOUT_HTTP_CLIENT — missing connect/read timeouts
Symptom: last log line is an outbound HTTP call (axios.get, fetch,
requests.get) then nothing. Function hangs on a dead or slow host.
Moved verbatim → references/sdk-retry-and-client-timeout-reference.md § "HTTP client default timeouts".
Load when: diagnosing TIMEOUT_HTTP_CLIENT — per-client connect/read default matrix.
Verdict: ROOT_CAUSE_IDENTIFIED, LAYER: TIMEOUT_HTTP_CLIENT.
// axios — Node: pass explicit timeout
await axios.get(url, { timeout: 3000, proxy: false });
# requests — Python: pass (connect, read) tuple
requests.get(url, timeout=(0.5, 3.0))
Step 6: TIMEOUT_DB_CONNECTION — handshake overhead without RDS Proxy
Symptom: last log line is "Connecting to DB" / "Connection acquired"
then nothing. DB itself is healthy (low CPU, low load).
Moved verbatim → references/diagnostic-commands.md § "Step 6 probe commands".
Load when: running the live probe for this branch.
If no RDS Proxy exists and the function opens a new connection per
invocation (outside module scope), each invocation pays 200-1500 ms for
TCP + TLS + auth. Under concurrency, this compounds.
Verdict: ROOT_CAUSE_IDENTIFIED, LAYER: TIMEOUT_DB_CONNECTION.
Fixes: add RDS Proxy; move connection to module scope; use Aurora
Serverless v2 with pooling.
Step 7: TIMEOUT_STEP_FUNCTIONS_MISMATCH — Task timeout < Lambda timeout
Symptom: Step Functions execution fails with States.Timeout on a
Task invoking Lambda. The Lambda's own CloudWatch shows Duration <
Timeout (it completed) OR Duration ≈ Step Functions TimeoutSeconds.
Moved verbatim → references/diagnostic-commands.md § "Step 7 probe commands".
Load when: running the live probe for this branch.
Task.TimeoutSeconds (default 60) fires at the configured value
regardless of the Lambda function's own Timeout.
Verdict: ROOT_CAUSE_IDENTIFIED, LAYER: TIMEOUT_STEP_FUNCTIONS_MISMATCH.
Fix: align Task.TimeoutSeconds ≥ Lambda Timeout + 5s, OR use
.waitForTaskToken integration for long-running async work.
Step 8: TIMEOUT_ASYNC_APIGW — API Gateway 29s cap
Symptom: client receives 504 from API Gateway; Lambda's own logs show
the function completed successfully at, e.g., 35 s.
Moved verbatim → references/init-phase-and-caller-timeout-reference.md § "Caller-side hard caps".
Load when: diagnosing TIMEOUT_ASYNC_APIGW or TIMEOUT_STEP_FUNCTIONS_MISMATCH — caller cap matrix.
Verdict: ROOT_CAUSE_IDENTIFIED, LAYER: TIMEOUT_ASYNC_APIGW.
Fix: redesign as async (Event invocation type) so client receives 202
immediately; OR break work into smaller Step Functions tasks under 29 s.
Step 9: TIMEOUT_PROV_CONCURRENCY_INIT — provisioned alias spillover
Symptom: invocations to a provisioned-concurrency alias intermittently
time out at init. ProvisionedConcurrencySpilloverInvocations > 0.
Moved verbatim → references/diagnostic-commands.md § "Step 9 probe commands".
Load when: running the live probe for this branch.
Verdict: ROOT_CAUSE_IDENTIFIED, LAYER: TIMEOUT_PROV_CONCURRENCY_INIT.
Fixes: raise provisioned concurrency allocation; enable SnapStart (Java);
reduce image size (container).
Step 10: TIMEOUT_OOM_BEFORE_TIMEOUT — OOM masquerades as timeout
Symptom: Duration ≈ Timeout AND MaxMemoryUsed ≈ MemorySize on the
same invocations. The OOM killer fires before the timeout SIGKILL.
Moved verbatim → references/diagnostic-commands.md § "Step 10 probe commands".
Load when: running the live probe for this branch.
If MemoryUtilization: 100 correlates with timeouts, the layer is
TIMEOUT_OOM_BEFORE_TIMEOUT. Fix: raise MemorySize first (also
raises CPU proportion — 1 vCPU at 1769 MB, 6 vCPU at 10240 MB).
Step 11: TIMEOUT_VPC_ENI, TIMEOUT_EFS_MOUNT, TIMEOUT_CHILD_PROCESS
TIMEOUT_VPC_ENI — VPC cold-start ENI latency is eliminated by
Hyperplane ENIs (2019+). Only diagnose with positive evidence (service
event, no hyperplane ENI, route-table misconfiguration). Do NOT
diagnose from pre-2019 runbooks.
TIMEOUT_EFS_MOUNT — FileSystemConfigs populated; first
invocation times out at EFS mount. Cross-AZ EFS mounts add 1-3 s;
same-AZ is < 500 ms. Verify EFS access point and mount target AZ.
TIMEOUT_CHILD_PROCESS — child_process.exec / subprocess.run
without explicit timeout inherits the Lambda Timeout. Fork+exec on
128 MB environments can be 500-1000 ms per spawn. Pass explicit
{ timeout: <ms> }.
Step 12: INSUFFICIENT_DATA / escalate
If no probe produced a positive match, emit INSUFFICIENT_DATA with the
specific missing pieces, OR escalate to AWS Support if a regional Lambda
event is present in aws health describe-events.
Output format
TARGET: <function-name with qualifier>
VERDICT: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA
REASON: <1-2 sentences naming the failed layer and the failing probe>
LAYER: <TIMEOUT_CONFIG | TIMEOUT_DOWNSTREAM | TIMEOUT_INIT_PHASE |
TIMEOUT_VPC_ENI | TIMEOUT_DB_CONNECTION | TIMEOUT_HTTP_CLIENT |
TIMEOUT_SDK_RETRY_STORM | TIMEOUT_EFS_MOUNT |
TIMEOUT_STEP_FUNCTIONS_MISMATCH | TIMEOUT_ASYNC_APIGW |
TIMEOUT_PROV_CONCURRENCY_INIT | TIMEOUT_OOM_BEFORE_TIMEOUT |
TIMEOUT_CHILD_PROCESS | UNKNOWN>
EVIDENCE:
- <observed symptom — error string or pattern>
- <failing probe — command and its output that confirms the cause>
- <passing probes — layers ruled out>
REMEDIATION:
1. <specific action with CLI command>
2. <verification command after the fix>
CONFIRM: Before executing any state-changing CLI, emit and await operator
approval: "CONFIRM: About to <action> on <name> in <region>. Proceed?
(yes/no)"
Worked example — SDK retry storm
TARGET: fn-prod-order-handler (alias: prod, version 18)
VERDICT: ROOT_CAUSE_IDENTIFIED
REASON: AWS SDK v3 default maxRetries: 3 with exponential backoff on a
DynamoDB call where the table is throttled (200 WCU on 5000 WCU
demand). Each of the 3 attempts takes ~9s; total wall clock per
invocation is ~28s against a 30s Lambda Timeout. Logs show "Retrying
request ... attempt 2 of 3" and "attempt 3 of 3" before each kill.
LAYER: TIMEOUT_SDK_RETRY_STORM
EVIDENCE:
- Symptom: 60% of invocations time out at exactly 30s during the 09:00
traffic peak; off-peak invocations complete in 2-4s.
- Probe: aws logs filter-log-events returns "Retrying request ...
attempt 2 of 3" preceding 87% of "Task timed out" entries.
- Probe: aws cloudwatch WriteThrottleEvents for orders-table shows
sustained throttling during the same window.
- Passing: MemoryUtilization Maximum = 28% (not OOM); SnapStart n/a
(Node.js); no VPC attachment; no HTTP client call.
REMEDIATION:
1. Set SDK maxAttempts: 0 in the DynamoDB client constructor:
const ddb = new DynamoDBClient({ maxAttempts: 0 });
2. Switch the table to on-demand billing:
aws dynamodb update-table --table-name orders-table \
--billing-mode PAY_PER_REQUEST --profile <p>
3. Optionally raise Lambda Timeout to 60s as defence-in-depth.
CONFIRM: Before updating the table or function, emit and await:
"CONFIRM: About to switch orders-table to PAY_PER_REQUEST and update
fn-prod-order-handler SDK maxAttempts. Proceed? (yes/no)"
Additional worked examples (init-phase SnapStart, Step Functions
mismatch) appear in examples/README.md.
Anti-Patterns — NEVER
NEVER declare ROOT_CAUSE_IDENTIFIED without a failing probe that
matches the symptom.
NEVER recommend raising the timeout without checking memory first.
CPU scales with memory; CPU-bound timeouts resolve with a memory bump.
NEVER diagnose TIMEOUT_VPC_ENI based on legacy runbooks. Hyperplane
ENIs (2019+) eliminated per-function ENI creation. Only diagnose with
positive evidence.
NEVER conflate Step Functions Task.TimeoutSeconds with Lambda
Timeout. Step Functions fires States.Timeout at the Task-level
value regardless of the Lambda's own budget.
NEVER assume an HTTP client has a default connect timeout. axios,
Node fetch, Python requests, and urllib3 all default to NO connect
timeout — a dead host consumes the entire Lambda budget on one SYN.
NEVER ignore the SDK retry multiplier. AWS SDK v3 defaults to 3
retries with exponential backoff; a slow downstream consumes 3x the
per-call latency. Set maxAttempts: 0 on hot paths.
NEVER conclude "function has no logs, must be a Lambda bug" without
checking InitDuration. Init-phase timeout produces zero application
logs because the handler never ran.
NEVER enable SnapStart on a non-Java function. SnapStart is Java-only
on supported managed runtimes (Corretto 11/17/21).
NEVER treat API Gateway 504 as a Lambda failure. API Gateway fires
504 at 29 s while the Lambda continues to its own Timeout.
NEVER assume OOM can't masquerade as timeout. Always cross-check
MemoryUtilization AND Duration before declaring TIMEOUT_CONFIG.
Pre-flight safety checks
MANDATORY CONFIRMATION GATE. Before any state-changing operation
(update-function-configuration, publish-version, update-alias,
update-state-machine), emit and await operator approval.
Read-only first. Every probe is read-only. Do not perform
state-changing operations as diagnostic probes.
Raising Timeout is safe; lowering can cause new failures.
Raising MemorySize is safe; CPU proportion increases with memory.
Enabling SnapStart requires a new version publish; only newly
published versions benefit.
Provisioned concurrency is billed per-second. Start small and
scale based on spillover metrics.
Step Functions state-machine update triggers a new revision;
in-flight executions continue on the prior revision.
Remediation guidance
Moved verbatim → references/advanced-patterns.md § "Remediation guidance".
Load when: the verdict is known — per-layer fix commands and guardrails.
References (load on demand)
- references/diagnostic-commands.md — pre-flight and per-step probe commands moved from this SKILL.md
- references/advanced-patterns.md — philosophy, Step-0 non-obvious behaviours, and remediation guidance moved from this SKILL.md
- references/init-phase-and-caller-timeout-reference.md — init-phase budgets and caller-side timeout caps (caller-cap table moved into this file)
- references/sdk-retry-and-client-timeout-reference.md — SDK retry multiplier maths and HTTP client timeout defaults (client-default table moved into this file)
Domain
AWS CloudOps / Lambda Serverless Compute, Timeout Diagnostics, SDK Retry
Behaviour, Step Functions Integration, and API Gateway Integration.
AWS documentation
1---2name: lambda-timeout-troubleshooter3description: 'Diagnoses AWS Lambda TaskTimeoutException through a focused timeout decision tree: configured timeout vs observed Duration, init-phase (cold-start) timeout vs invoke-phase timeout, SDK retry storms with exponential backoff multiplier, HTTP client missing connect timeouts, database connection overhead without RDS Proxy, VPC ENI attachment delay (hyperplane-eliminated cold start), EFS mount latency, Step Functions task timeout vs Lambda Timeout mismatch, API Gateway 504 vs async Lambda 202, provisioned concurrency init-phase timeout, OOM-before-timeout masking, child-process fork overhead, and p99/p99.9 Duration analysis with X-Ray trace bottleneck identification. Walks symptoms to a verified root cause with evidence-backed probes; emits ROOT_CAUSE_IDENTIFIED or INSUFFICIENT_DATA.'4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline symptom classification works from pasted error messages, REPORT log lines, and function configuration. Live-account diagnosis uses aws lambda get-function-configuration, aws logs get-log-events / filter-log-events, aws cloudwatch get-metric-statistics (Duration p99/p99.9, InitDuration, Throttles), aws xray get-trace-summaries / batch-get-traces, aws stepfunctions describe-execution, aws ec2...6metadata:7 source: https://skillmd.com/skills/jhkchan/lambda-timeout-troubleshooter8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '2'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Compute15 task_type: troubleshoot16 skill_class: capability17 lifecycle_status: active18 verdict_shape: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA19 when_to_use: Diagnosing a Lambda TaskTimeoutException where the root cause may be init-phase timeout (cold start), invoke-phase downstream latency, SDK retry multiplier exhausting the budget, HTTP client missing connect/read timeouts, DB connection overhead without RDS Proxy, Step Functions vs Lambda timeout mismatch, API Gateway 504 on sync invokes, provisioned concurrency init-phase timeout, OOM masking as timeout, or child-process fork overhead — walking the symptom to the failed layer with verify commands, validating why a function returns TaskTimeoutException, or triaging a "Lambda times out" page where the actual bottleneck is init, retry, downstream, or memory — not the configured timeout alone.20 when_not_to_use: Invocation AccessDenied or KMS decrypt errors (use lambda-invocation-troubleshooter), code-level debugging of the function handler (use the application logs and a debugger), CloudFront/Lambda@Edge origin timeouts (use the CloudFront distribution logs), or steady-state p99 latency tuning without TaskTimeoutException (use lambda-cold-start-optimizer). This skill diagnoses TaskTimeoutException root causes; it does not author handler code or audit steady-state config posture.21 activation_triggers: Lambda TaskTimeoutException, Task timed out Lambda, Lambda timeout init phase, Lambda cold start timeout, Lambda SnapStart timeout, Lambda SDK retry storm, Lambda exponential backoff timeout, Lambda HTTP client hang, axios no connect timeout Lambda, Lambda RDS Proxy timeout, database connection Lambda timeout, Lambda VPC ENI timeout, Lambda EFS mount timeout, Step Functions Lambda timeout mismatch, API Gateway 504 Lambda, Lambda async 202 caller timeout, provisioned concurrency init timeout, Lambda OOM before timeout, Lambda child process timeout, Lambda X-Ray bottleneck, Lambda Duration p99, diagnose Lambda timeout22 invocation_schema: 'Input: either (a) a TaskTimeoutException symptom description (error message, REPORT log line with Duration ≈ Timeout, observed pattern — every invocation vs bursty), optionally paired with the function configuration (get-function-configuration output, Runtime, Timeout, MemorySize, SnapStart, VpcConfig, FileSystemConfigs) and recent CloudWatch logs / X-Ray trace, OR (b) a FunctionName plus caller context (Step Functions / API Gateway / EventBridge / direct Invoke) for live-account diagnosis. Output: a deterministic TARGET/VERDICT/REASON/LAYER/EVIDENCE/REMEDIATION block where VERDICT ∈ {ROOT_CAUSE_IDENTIFIED, INSUFFICIENT_DATA} and LAYER ∈ {TIMEOUT_CONFIG, TIMEOUT_DOWNSTREAM, TIMEOUT_INIT_PHASE, TIMEOUT_VPC_ENI, TIMEOUT_DB_CONNECTION, TIMEOUT_HTTP_CLIENT, TIMEOUT_SDK_RETRY_STORM, TIMEOUT_EFS_MOUNT, TIMEOUT_STEP_FUNCTIONS_MISMATCH, TIMEOUT_ASYNC_APIGW, TIMEOUT_PROV_CONCURRENCY_INIT, TIMEOUT_OOM_BEFORE_TIMEOUT, TIMEOUT_CHILD_PROCESS, UNKNOWN}.'23 invocation_example: "# Minimal valid input (offline symptom classification):\nSymptom: \"Lambda function fn-prod-order-handler started\nreturning TaskTimeoutException after the 09:00 traffic peak; 60%\nof invocations now time out at 30s; the rest succeed in 2-4s.\"\nFunctionName: fn-prod-order-handler\nRuntime: nodejs20.x\nTimeout: 30\nMemorySize: 512\nHandler: index.handler\nSnapStart: (not applicable — Node.js)\nVpcConfig: (none)\nFileSystemConfigs: (none)\nLastLogEvents: 1 timeout at \"await dynamodb.put(...).promise()\"\n retrying (attempt 2 of 3) ... then \"Task timed out after 30.00 seconds\"\nCaller: Step Functions task with TimeoutSeconds: 30"24 version: 0.1.025 author: Jacky Chan — AWS Community Builder26 keywords: Lambda, TaskTimeoutException, Task timed out, timeout, init phase, cold start, SnapStart, provisioned concurrency, SDK retry, exponential backoff, retry storm, HTTP client, connect timeout, RDS Proxy, database connection, VPC ENI, hyperplane ENI, EFS mount, Step Functions, API Gateway 504, async 202, OOM before timeout, child process, X-Ray trace, p99 Duration, troubleshooting27 tags: lambda, compute, troubleshooting, timeout, init-phase, cold-start, sdk-retry, http-client, vpc, efs, step-functions, xray28---2930# Lambda Timeout Troubleshooter3132## Quick start3334- **Symptom → layer map (first plausible match drives the first probe):**35 Every invocation times out at exactly Timeout with the same last log36 line → TIMEOUT_DOWNSTREAM / TIMEOUT_HTTP_CLIENT; timeout with zero37 application log lines → TIMEOUT_INIT_PHASE; bursty timeouts correlated38 with traffic peaks → TIMEOUT_SDK_RETRY_STORM / TIMEOUT_DB_CONNECTION;39 Step Functions `Task` `States.Timeout` → TIMEOUT_STEP_FUNCTIONS_MISMATCH;40 API Gateway 504 on sync invoke → TIMEOUT_ASYNC_APIGW; first invocation41 of provisioned alias times out → TIMEOUT_PROV_CONCURRENCY_INIT;42 MaxMemoryUsed ≈ MemorySize alongside timeout → TIMEOUT_OOM_BEFORE_TIMEOUT.43- **The init phase has its own timeout budget.** Lambda's init phase44 (cold start) shares the configured Timeout with the invoke phase. A45 Java/Spring function with a 7-second init and a 5-second configured46 Timeout fails on every cold start with `TaskTimeoutException` and zero47 application logs — the handler never ran. SnapStart (Java) eliminates48 this entirely by restoring from a snapshot in 50-200 ms.49- **SDK retries multiply the worst-case wall clock.** AWS SDK v3 default50 is 3 retries with exponential backoff. A Lambda with Timeout:30s51 calling a downstream that hangs 9s per attempt sees 9+0.1+9+0.2+9+0.452 ≈ 28s before the final attempt even starts — the SDK burns the budget53 while the function appears "stuck on one call." Set SDK `maxAttempts: 0`54 and let Lambda-level retries handle failure recovery.55- **HTTP clients ship with no connect timeout by default.** `axios`,56 Node `fetch`, Python `requests` default to no connect timeout — a dead57 host consumes the entire Lambda Timeout on a single TCP SYN. Always58 pass an explicit `{ timeout: 3000 }` (axios) or `Timeout(connect=0.5,59 read=3)` (requests) config.60- **VPC cold-start ENI latency was eliminated in 2019.** Hyperplane ENIs61 are pre-provisioned shared resources; a VPC-attached Lambda no longer62 pays per-function ENI creation on cold start. If a 2019 blog post or63 legacy runbook claims "VPC attachment adds 10s cold start for ENI64 creation," it is outdated — do NOT declare TIMEOUT_VPC_ENI without65 positive evidence.66- **OOM masquerades as timeout.** A function that hits MemorySize near67 the Timeout boundary may be killed by the OOM killer before the68 service's timeout SIGKILL fires — CloudWatch shows Duration ≈ Timeout69 AND MaxMemoryUsed ≈ MemorySize. Always cross-check both metrics before70 declaring TIMEOUT_CONFIG.7172## Mindset7374A `TaskTimeoutException` is the Lambda service telling you the function75exceeded its wall-clock budget. The configured `Timeout` is rarely the76fix — it is the boundary. The actual root cause is what consumed the77budget: init phase, downstream call, retry multiplier, HTTP client78default, DB handshake, or another layer. Senior serverless engineers79raise the timeout only as a stopgap; they identify the budget consumer.8081## Philosophy8283> **Moved verbatim** → [references/advanced-patterns.md](references/advanced-patterns.md) § "Philosophy — five senior behaviours".84> Load when: calibrating judgement before probing — init wall clock, SDK retry multiplier, hyperplane ENIs, Step Functions vs Lambda, API Gateway 29 s.8586## Quick reference — timeout triage table8788| Symptom pattern | Most likely layer | First probe |89|---|---|---|90| Every invocation times out at exactly Timeout; same last log line | TIMEOUT_DOWNSTREAM | CloudWatch Duration p99 vs Timeout; downstream service metrics |91| Timeout with ZERO application log lines | TIMEOUT_INIT_PHASE | CloudWatch `InitDuration`; SnapStart / Runtime; MemorySize |92| Bursty timeouts correlated with traffic peaks | TIMEOUT_SDK_RETRY_STORM | Log lines "retrying (attempt N of M)"; SDK `maxRetries` config |93| "await axios.get(...)" then nothing | TIMEOUT_HTTP_CLIENT | axios/fetch/requests config for connect & read timeouts |94| "Connection acquired" / "Connecting to DB" then nothing | TIMEOUT_DB_CONNECTION | DB max_connections, RDS Proxy presence, TLS handshake time |95| Step Functions `States.Timeout` on Lambda Task | TIMEOUT_STEP_FUNCTIONS_MISMATCH | Step Functions `TimeoutSeconds` vs Lambda `Timeout` |96| API Gateway 504 on sync invoke; Lambda continues | TIMEOUT_ASYNC_APIGW | API Gateway 29s cap vs Lambda Timeout |97| First invocation of provisioned alias times out | TIMEOUT_PROV_CONCURRENCY_INIT | `ProvisionedConcurrencySpilloverInvocations`; SnapStart on Java |98| MaxMemoryUsed ≈ MemorySize alongside timeout | TIMEOUT_OOM_BEFORE_TIMEOUT | CloudWatch MemoryUtilization; raise memory first |99| "spawning child process" then nothing | TIMEOUT_CHILD_PROCESS | fork/exec overhead; `child_process.exec` timeout |100| EFS mount then nothing | TIMEOUT_EFS_MOUNT | FileSystemConfigs; EFS `MountStatus`; cross-AZ mount |101| None of the above, regional Lambda event | INSUFFICIENT_DATA → escalate | AWS Health `describe-events` |102103## Pre-flight: function state and gather-info gate104105### Pre-flight commands106107> **Moved verbatim** → [references/diagnostic-commands.md](references/diagnostic-commands.md) § "Pre-flight commands".108> Load when: running live-account probes — function config, Duration/Memory metrics, timeout logs, X-Ray traces.109110If the input is malformed (missing FunctionName, absent symptom, no111REPORT log line or Duration metric), emit INSUFFICIENT_DATA with the112missing pieces (qualifier, Timeout, Duration p99/Maximum, last log113line before each `Task timed out` entry).114115## Process — Timeout diagnostic decision tree116117The tree is symptom-driven. Pick the entry point based on the observed118pattern, then walk the probes in order. **Never emit ROOT_CAUSE_IDENTIFIED119without a failing probe that matches the symptom.**120121### Step 0: Non-obvious behaviours that change timeout diagnosis122123> **Moved verbatim** → [references/advanced-patterns.md](references/advanced-patterns.md) § "Step 0: Non-obvious behaviours".124> Load when: the symptom is ambiguous — init-vs-invoke budget, SnapStart, retry multiplier, connect/request timeouts, spillover, OOM masking.125126### Step 1: Symptom entry — pick the diagnostic branch127128| Symptom | Branch |129|---|---|130| Every invocation times out; `Duration.Maximum == Timeout`; same last log line | Step 2 |131| Timeout with ZERO application log lines; `InitDuration` > 1s | Step 3 |132| Bursty timeouts; "retrying (attempt N of M)" in logs | Step 4 |133| Last log is `axios.get` / `fetch` / `requests.get` | Step 5 |134| Last log is "Connecting to DB" / "Connection acquired" | Step 6 |135| Caller is Step Functions; `States.Timeout` on `Task` | Step 7 |136| Caller is API Gateway; 504 to client | Step 8 |137| Provisioned alias; spillover invocations time out | Step 9 |138| `MaxMemoryUsed` ≈ `MemorySize` alongside timeout | Step 10 |139| VPC / EFS / child process | Step 11 |140| None of the above | Step 12 |141142### Step 2: TIMEOUT_CONFIG vs TIMEOUT_DOWNSTREAM143144> **Moved verbatim** → [references/diagnostic-commands.md](references/diagnostic-commands.md) § "Step 2 probe commands".145> Load when: running the live probe for this branch.146147Decision rule:148- `p99` and `Maximum` both ≈ `Timeout` on every invocation → TIMEOUT_CONFIG149 (timeout too low). Fix: raise Timeout.150- `p99` just above Timeout but `p50` well below → TIMEOUT_DOWNSTREAM151 (intermittent downstream latency). Fix: address the downstream.152- `Maximum == Timeout` but `p99` well below → bursty failure under load →153 check Step 4 (SDK retry) and Step 5 (HTTP client).154155### Step 3: TIMEOUT_INIT_PHASE — init exceeds the budget156157Symptom: TaskTimeoutException with ZERO application log lines on cold158starts. Warm invocations succeed. `InitDuration` is high.159160> **Moved verbatim** → [references/diagnostic-commands.md](references/diagnostic-commands.md) § "Step 3 probe commands".161> Load when: running the live probe for this branch.162163| Function profile | Verdict / fix |164|---|---|165| Java 11/17/21, SnapStart not enabled | ROOT_CAUSE_IDENTIFIED, `TIMEOUT_INIT_PHASE`. Fix: enable SnapStart (`--snap-start ApplyOn=PublishedVersion`) and publish a new version. |166| Non-Java with heavy init | ROOT_CAUSE_IDENTIFIED, `TIMEOUT_INIT_PHASE`. Fix: raise MemorySize; defer heavy module loads to first invoke. |167| Container function with > 500 MB image | ROOT_CAUSE_IDENTIFIED, `TIMEOUT_INIT_PHASE`. Fix: reduce image size. |168169### Step 4: TIMEOUT_SDK_RETRY_STORM — exponential backoff multiplier170171Symptom: bursty timeouts correlated with traffic peaks. Logs contain172"Retrying request ... attempt N of M" before the kill.173174> **Moved verbatim** → [references/diagnostic-commands.md](references/diagnostic-commands.md) § "Step 4 probe commands".175> Load when: running the live probe for this branch.176177AWS SDK v3 default is `maxRetries: 3`. With exponential backoff, worst-178case wall clock is `(maxRetries + 1) × requestTimeout + sum(backoff)`.179For `requestTimeout: 9000`, this is ~28s on a Lambda with `Timeout: 30`.180181**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: TIMEOUT_SDK_RETRY_STORM`.182183Fixes:184- Set SDK `maxAttempts: 0` and let Lambda / Step Functions handle retries.185- Or set `requestTimeout: <Timeout / (maxRetries + 1) - headroom>`.186- Or move to async invocation so attempt failures don't consume wall clock.187188### Step 5: TIMEOUT_HTTP_CLIENT — missing connect/read timeouts189190Symptom: last log line is an outbound HTTP call (`axios.get`, `fetch`,191`requests.get`) then nothing. Function hangs on a dead or slow host.192193> **Moved verbatim** → [references/sdk-retry-and-client-timeout-reference.md](references/sdk-retry-and-client-timeout-reference.md) § "HTTP client default timeouts".194> Load when: diagnosing TIMEOUT_HTTP_CLIENT — per-client connect/read default matrix.195196**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: TIMEOUT_HTTP_CLIENT`.197198```javascript199// axios — Node: pass explicit timeout200await axios.get(url, { timeout: 3000, proxy: false });201```202```python203# requests — Python: pass (connect, read) tuple204requests.get(url, timeout=(0.5, 3.0))205```206207### Step 6: TIMEOUT_DB_CONNECTION — handshake overhead without RDS Proxy208209Symptom: last log line is "Connecting to DB" / "Connection acquired"210then nothing. DB itself is healthy (low CPU, low load).211212> **Moved verbatim** → [references/diagnostic-commands.md](references/diagnostic-commands.md) § "Step 6 probe commands".213> Load when: running the live probe for this branch.214215If no RDS Proxy exists and the function opens a new connection per216invocation (outside module scope), each invocation pays 200-1500 ms for217TCP + TLS + auth. Under concurrency, this compounds.218219**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: TIMEOUT_DB_CONNECTION`.220221Fixes: add RDS Proxy; move connection to module scope; use Aurora222Serverless v2 with pooling.223224### Step 7: TIMEOUT_STEP_FUNCTIONS_MISMATCH — Task timeout < Lambda timeout225226Symptom: Step Functions execution fails with `States.Timeout` on a227`Task` invoking Lambda. The Lambda's own CloudWatch shows Duration <228Timeout (it completed) OR Duration ≈ Step Functions TimeoutSeconds.229230> **Moved verbatim** → [references/diagnostic-commands.md](references/diagnostic-commands.md) § "Step 7 probe commands".231> Load when: running the live probe for this branch.232233`Task.TimeoutSeconds` (default 60) fires at the configured value234regardless of the Lambda function's own `Timeout`.235236**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: TIMEOUT_STEP_FUNCTIONS_MISMATCH`.237238Fix: align `Task.TimeoutSeconds ≥ Lambda Timeout + 5s`, OR use239`.waitForTaskToken` integration for long-running async work.240241### Step 8: TIMEOUT_ASYNC_APIGW — API Gateway 29s cap242243Symptom: client receives 504 from API Gateway; Lambda's own logs show244the function completed successfully at, e.g., 35 s.245246> **Moved verbatim** → [references/init-phase-and-caller-timeout-reference.md](references/init-phase-and-caller-timeout-reference.md) § "Caller-side hard caps".247> Load when: diagnosing TIMEOUT_ASYNC_APIGW or TIMEOUT_STEP_FUNCTIONS_MISMATCH — caller cap matrix.248249**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: TIMEOUT_ASYNC_APIGW`.250251Fix: redesign as async (Event invocation type) so client receives 202252immediately; OR break work into smaller Step Functions tasks under 29 s.253254### Step 9: TIMEOUT_PROV_CONCURRENCY_INIT — provisioned alias spillover255256Symptom: invocations to a provisioned-concurrency alias intermittently257time out at init. `ProvisionedConcurrencySpilloverInvocations` > 0.258259> **Moved verbatim** → [references/diagnostic-commands.md](references/diagnostic-commands.md) § "Step 9 probe commands".260> Load when: running the live probe for this branch.261262**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: TIMEOUT_PROV_CONCURRENCY_INIT`.263264Fixes: raise provisioned concurrency allocation; enable SnapStart (Java);265reduce image size (container).266267### Step 10: TIMEOUT_OOM_BEFORE_TIMEOUT — OOM masquerades as timeout268269Symptom: `Duration ≈ Timeout` AND `MaxMemoryUsed ≈ MemorySize` on the270same invocations. The OOM killer fires before the timeout SIGKILL.271272> **Moved verbatim** → [references/diagnostic-commands.md](references/diagnostic-commands.md) § "Step 10 probe commands".273> Load when: running the live probe for this branch.274275If `MemoryUtilization: 100` correlates with timeouts, the layer is276`TIMEOUT_OOM_BEFORE_TIMEOUT`. Fix: raise `MemorySize` first (also277raises CPU proportion — 1 vCPU at 1769 MB, 6 vCPU at 10240 MB).278279### Step 11: TIMEOUT_VPC_ENI, TIMEOUT_EFS_MOUNT, TIMEOUT_CHILD_PROCESS280281- **TIMEOUT_VPC_ENI** — VPC cold-start ENI latency is eliminated by282 Hyperplane ENIs (2019+). Only diagnose with positive evidence (service283 event, no hyperplane ENI, route-table misconfiguration). Do NOT284 diagnose from pre-2019 runbooks.285286- **TIMEOUT_EFS_MOUNT** — `FileSystemConfigs` populated; first287 invocation times out at EFS mount. Cross-AZ EFS mounts add 1-3 s;288 same-AZ is < 500 ms. Verify EFS access point and mount target AZ.289290- **TIMEOUT_CHILD_PROCESS** — `child_process.exec` / `subprocess.run`291 without explicit `timeout` inherits the Lambda Timeout. Fork+exec on292 128 MB environments can be 500-1000 ms per spawn. Pass explicit293 `{ timeout: <ms> }`.294295### Step 12: INSUFFICIENT_DATA / escalate296297If no probe produced a positive match, emit INSUFFICIENT_DATA with the298specific missing pieces, OR escalate to AWS Support if a regional Lambda299event is present in `aws health describe-events`.300301## Output format302303```text304TARGET: <function-name with qualifier>305VERDICT: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA306REASON: <1-2 sentences naming the failed layer and the failing probe>307LAYER: <TIMEOUT_CONFIG | TIMEOUT_DOWNSTREAM | TIMEOUT_INIT_PHASE |308 TIMEOUT_VPC_ENI | TIMEOUT_DB_CONNECTION | TIMEOUT_HTTP_CLIENT |309 TIMEOUT_SDK_RETRY_STORM | TIMEOUT_EFS_MOUNT |310 TIMEOUT_STEP_FUNCTIONS_MISMATCH | TIMEOUT_ASYNC_APIGW |311 TIMEOUT_PROV_CONCURRENCY_INIT | TIMEOUT_OOM_BEFORE_TIMEOUT |312 TIMEOUT_CHILD_PROCESS | UNKNOWN>313EVIDENCE:314 - <observed symptom — error string or pattern>315 - <failing probe — command and its output that confirms the cause>316 - <passing probes — layers ruled out>317REMEDIATION:318 1. <specific action with CLI command>319 2. <verification command after the fix>320CONFIRM: Before executing any state-changing CLI, emit and await operator321 approval: "CONFIRM: About to <action> on <name> in <region>. Proceed?322 (yes/no)"323```324325### Worked example — SDK retry storm326327```text328TARGET: fn-prod-order-handler (alias: prod, version 18)329VERDICT: ROOT_CAUSE_IDENTIFIED330REASON: AWS SDK v3 default maxRetries: 3 with exponential backoff on a331 DynamoDB call where the table is throttled (200 WCU on 5000 WCU332 demand). Each of the 3 attempts takes ~9s; total wall clock per333 invocation is ~28s against a 30s Lambda Timeout. Logs show "Retrying334 request ... attempt 2 of 3" and "attempt 3 of 3" before each kill.335LAYER: TIMEOUT_SDK_RETRY_STORM336EVIDENCE:337 - Symptom: 60% of invocations time out at exactly 30s during the 09:00338 traffic peak; off-peak invocations complete in 2-4s.339 - Probe: aws logs filter-log-events returns "Retrying request ...340 attempt 2 of 3" preceding 87% of "Task timed out" entries.341 - Probe: aws cloudwatch WriteThrottleEvents for orders-table shows342 sustained throttling during the same window.343 - Passing: MemoryUtilization Maximum = 28% (not OOM); SnapStart n/a344 (Node.js); no VPC attachment; no HTTP client call.345REMEDIATION:346 1. Set SDK maxAttempts: 0 in the DynamoDB client constructor:347 const ddb = new DynamoDBClient({ maxAttempts: 0 });348 2. Switch the table to on-demand billing:349 aws dynamodb update-table --table-name orders-table \350 --billing-mode PAY_PER_REQUEST --profile <p>351 3. Optionally raise Lambda Timeout to 60s as defence-in-depth.352CONFIRM: Before updating the table or function, emit and await:353 "CONFIRM: About to switch orders-table to PAY_PER_REQUEST and update354 fn-prod-order-handler SDK maxAttempts. Proceed? (yes/no)"355```356357Additional worked examples (init-phase SnapStart, Step Functions358mismatch) appear in `examples/README.md`.359360## Anti-Patterns — NEVER361362- NEVER declare ROOT_CAUSE_IDENTIFIED without a failing probe that363 matches the symptom.364365- NEVER recommend raising the timeout without checking memory first.366 CPU scales with memory; CPU-bound timeouts resolve with a memory bump.367368- NEVER diagnose TIMEOUT_VPC_ENI based on legacy runbooks. Hyperplane369 ENIs (2019+) eliminated per-function ENI creation. Only diagnose with370 positive evidence.371372- NEVER conflate Step Functions `Task.TimeoutSeconds` with Lambda373 `Timeout`. Step Functions fires `States.Timeout` at the Task-level374 value regardless of the Lambda's own budget.375376- NEVER assume an HTTP client has a default connect timeout. axios,377 Node fetch, Python requests, and urllib3 all default to NO connect378 timeout — a dead host consumes the entire Lambda budget on one SYN.379380- NEVER ignore the SDK retry multiplier. AWS SDK v3 defaults to 3381 retries with exponential backoff; a slow downstream consumes 3x the382 per-call latency. Set `maxAttempts: 0` on hot paths.383384- NEVER conclude "function has no logs, must be a Lambda bug" without385 checking `InitDuration`. Init-phase timeout produces zero application386 logs because the handler never ran.387388- NEVER enable SnapStart on a non-Java function. SnapStart is Java-only389 on supported managed runtimes (Corretto 11/17/21).390391- NEVER treat API Gateway 504 as a Lambda failure. API Gateway fires392 504 at 29 s while the Lambda continues to its own Timeout.393394- NEVER assume OOM can't masquerade as timeout. Always cross-check395 `MemoryUtilization` AND `Duration` before declaring TIMEOUT_CONFIG.396397## Pre-flight safety checks398399- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation400 (`update-function-configuration`, `publish-version`, `update-alias`,401 `update-state-machine`), emit and await operator approval.402403- **Read-only first.** Every probe is read-only. Do not perform404 state-changing operations as diagnostic probes.405406- **Raising Timeout** is safe; lowering can cause new failures.407408- **Raising MemorySize** is safe; CPU proportion increases with memory.409410- **Enabling SnapStart** requires a new version publish; only newly411 published versions benefit.412413- **Provisioned concurrency** is billed per-second. Start small and414 scale based on spillover metrics.415416- **Step Functions state-machine update** triggers a new revision;417 in-flight executions continue on the prior revision.418419## Remediation guidance420421> **Moved verbatim** → [references/advanced-patterns.md](references/advanced-patterns.md) § "Remediation guidance".422> Load when: the verdict is known — per-layer fix commands and guardrails.423424## References (load on demand)425426- [references/diagnostic-commands.md](references/diagnostic-commands.md) — pre-flight and per-step probe commands moved from this SKILL.md427- [references/advanced-patterns.md](references/advanced-patterns.md) — philosophy, Step-0 non-obvious behaviours, and remediation guidance moved from this SKILL.md428- [references/init-phase-and-caller-timeout-reference.md](references/init-phase-and-caller-timeout-reference.md) — init-phase budgets and caller-side timeout caps (caller-cap table moved into this file)429- [references/sdk-retry-and-client-timeout-reference.md](references/sdk-retry-and-client-timeout-reference.md) — SDK retry multiplier maths and HTTP client timeout defaults (client-default table moved into this file)430431## Domain432433AWS CloudOps / Lambda Serverless Compute, Timeout Diagnostics, SDK Retry434Behaviour, Step Functions Integration, and API Gateway Integration.435436## AWS documentation437438- **AWS Lambda Developer Guide — Configuring function timeout** — https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html439- **Lambda execution environment and runtime** — https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html440- **Lambda SnapStart** — https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html441- **Provisioned concurrency** — https://docs.aws.amazon.com/lambda/latest/dg/provisioned-concurrency.html442- **AWS SDK for JavaScript v3 — Retries** — https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-util-retry/443- **boto3 retries** — https://boto3.amazonaws.com/v1/documentation/api/latest/guide/retries.html444- **Step Functions Task timeouts** — https://docs.aws.amazon.com/step-functions/latest/dg/concepts-error-handling.html445- **API Gateway limits** — https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html446- **RDS Proxy** — https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-proxy.html447- **AWS X-Ray** — https://docs.aws.amazon.com/xray/latest/devguide/aws-xray.html