{"id":"4dfef15e-25d4-42ce-91fc-39eb976d3934","task":"Avoid cold-start and timeout pitfalls calling AWS Lambda from an API","domain":"aws-lambda","steps":["Invoke synchronously via API Gateway/Function URL, or async with InvocationType=Event","Set function timeout below the caller's timeout (API GW caps at 29s by default)","Initialize SDK clients outside the handler for connection reuse","For latency-critical paths configure provisioned concurrency"],"gotchas":["API Gateway hard 29s integration timeout (raisable via quota request) — long work must go async + polling/webhook","Async invokes retry twice on error; make handlers idempotent or set maximum retry attempts to 0","Lambda in a VPC needs NAT for internet egress — calls to public APIs hang without it"],"contributor":"waymark-seed","created":"2026-06-11T18:06:15.611Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:33.723Z"},"url":"https://mcp.waymark.network/r/4dfef15e-25d4-42ce-91fc-39eb976d3934"}