| name | snowflake-incident-runbook |
| description | Execute Snowflake incident response with triage, rollback, and postmortem using real SQL diagnostics.
Use when responding to Snowflake outages, investigating query failures,
or running post-incident reviews for pipeline failures.
Trigger with phrases like "snowflake incident", "snowflake outage",
"snowflake down", "snowflake on-call", "snowflake emergency".
|
| allowed-tools | Read, Grep, Bash(curl:*), Bash(snowsql:*) |
| version | 1.5.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","data-warehouse","analytics","snowflake"] |
| compatibility | Designed for Claude Code |
Snowflake Incident Runbook
Overview
Rapid incident response procedures for Snowflake infrastructure, pipeline failures, and query issues.
Severity Levels
| Level | Definition | Response Time | Examples |
|---|
| P1 | Complete outage | < 15 min | All queries failing, auth broken |
| P2 | Degraded service | < 1 hour | High latency, task failures |
| P3 | Minor impact | < 4 hours | Snowpipe delays, non-critical errors |
| P4 | No user impact | Next business day | Monitoring gaps, cost anomalies |
Quick Triage (First 5 Minutes)
Step 1: Is Snowflake Itself Down?
curl -s https://status.snowflake.com/api/v2/summary.json | python3 -c "
import sys, json
data = json.load(sys.stdin)
print(f\"Status: {data['status']['description']}\")
for c in data['components']:
if c['status'] != 'operational':
print(f\" DEGRADED: {c['name']} - {c['status']}\")
"
Step 2: Can We Connect?
SELECT CURRENT_TIMESTAMP(), CURRENT_ACCOUNT(), CURRENT_REGION();
Step 3: What's Failing?
SELECT error_code, error_message, COUNT(*) AS occurrences,
MIN(start_time) AS first_seen, MAX(start_time) AS last_seen
FROM SNOWFLAKE.ACCOUNT_USAGE.QUERY_HISTORY
WHERE execution_status = 'FAIL'
AND start_time >= DATEADD(minutes, , ())
error_code, error_message
occurrences ;
name, state, error_message, scheduled_time, completed_time
(INFORMATION_SCHEMA.TASK_HISTORY(
SCHEDULED_TIME_RANGE_START DATEADD(hours, , ())
))
state
scheduled_time ;
STREAMS;