Subchapter 32.4
references/incident-runbook-serverless.mdMarkdown4 KBView on GitHub
For the shape most early-stage AWS startups actually run: Lambda or ECS Fargate, API Gateway, DynamoDB or Aurora Serverless, often Amazon Bedrock, in a single account, with no dedicated operations engineer.
Generic operations guidance is not much use at this size. The patterns below are the ones this stack actually produces.
An investigation costs roughly $2.50–$4.00 and takes 5–8 minutes. Spend thirty seconds first:
If the symptom is already explained by an obvious recent change, say so and let the user decide whether to spend the investigation. Do not spend their credits to confirm something you can both already see.
Recognisable failure shapes for this stack. Use them to sharpen the question you hand to the agent, not to skip the investigation.
Lambda throttling. Concurrent executions hitting the account limit. Presents as intermittent 502s under load, not a clean outage. Ask whether traffic changed.
Cold start plus timeout. A downstream call slowed, so functions that used to finish inside the timeout now do not. Presents as errors that correlate with traffic troughs — the opposite of what people expect.
DynamoDB throttling on a hot partition. One key taking disproportionate traffic. Presents as partial failure: most requests fine, one customer or tenant broken.
Bedrock rate limits. Model invocations hitting per-model TPM/RPM quotas. Presents as AI features degrading while everything else is healthy. Often the fastest-growing surface in an AI-native startup and the least monitored.
IAM permission drift. A recent infrastructure change narrowed a role. Presents as a single code path
failing with AccessDenied while the rest of the service is fine.
Aurora Serverless scaling lag. Capacity ramping behind a traffic spike. Presents as elevated latency resolving on its own — which is why it often goes uninvestigated until it recurs.
Give it the symptom, the affected service, the time window, and any recent deploy. Then let it work — do not narrate a running investigation with guesses. Guesses stated while an investigation is in flight tend to become the user’s conclusion regardless of what the agent finds.
If this is their first investigation, tell them what it cost. Concretely, from the actual duration. It builds the habit of knowing, and it means the first bill is never a surprise.
If they have a recurring class of incident, release-readiness review on pull requests catches a meaningful share of them before they ship — and it works without production traffic.