Diff-Anything / Audit Guides / Cloud Billing

Isolating AWS NAT Gateway Processing & Cross-AZ Egress Spikes

Network transfer regressions rarely trigger CPU or memory alerts. A single Terraform route-table omission that removes an S3 VPC Gateway Endpoint silently diverts Parquet analytics traffic through Managed NAT Gateways at $0.045/GB, turning a $0 internal read into a multi-thousand-dollar invoice shock.

NAT Processing Delta+$6,390.00
Cross-AZ Transfer Delta+$1,920.00
Stray Dev NAT Hours+$133.92
Total Egress Regression+$8,443.92/mo

Baseline vs Post-Deploy Egress Diff (us-west-2, 31 Days)

Diffing last month's steady-state network CUR export against the post-release invoice pinpoints three distinct usage types without sifting through 400,000 raw CUR lines:

CUR Usage Type Unit Price Baseline Volume Actual Volume Baseline USD Actual USD Delta USD
USW2-NatGateway-Bytes (nat-09f82c1a) $0.045/GB 11,400 GB 153,400 GB $513.00 $6,903.00 +$6,390.00
USW2-DataTransfer-Regional-Bytes (Kafka AZ) $0.020/GB 18,000 GB 114,000 GB $360.00 $2,280.00 +$1,920.00
USW2-NatGateway-Hours (4 unremoved dev NATs) $0.045/hr 0 hrs 2,976 hrs $0.00 $133.92 +$133.92
Total Monthly Network Spike โ€” โ€” โ€” $873.00 $9,316.92 +$8,443.92

Reproducible POST /api/v1/diff Request

{
  "domain": "cloud_billing",
  "baseline": "usage_type,qty,unit_rate_usd\nUSW2-NatGateway-Bytes,11400,0.045\nUSW2-DataTransfer-Regional-Bytes,18000,0.02\nUSW2-NatGateway-Hours,0,0.045\n",
  "actual": "usage_type,qty,unit_rate_usd\nUSW2-NatGateway-Bytes,153400,0.045\nUSW2-DataTransfer-Regional-Bytes,114000,0.02\nUSW2-NatGateway-Hours,2976,0.045\n"
}

Verified DiffProofReport Output

{
  "ok": true,
  "domain": "cloud_billing",
  "summary": "Detected +$8,443.92/mo AWS NAT Gateway and cross-AZ egress spike across 3 CUR usage types.",
  "total_delta_usd": 8443.92,
  "recoverable_overcharge_usd": 8443.92,
  "severity": "critical",
  "line_item_findings": [
    { "id": "nat-01", "category": "egress_spike", "item": "USW2-NatGateway-Bytes", "baseline_value": "$513.00", "actual_value": "$6,903.00", "delta_usd": 6390.00, "severity": "critical", "claim_action": "Attach free S3 & DynamoDB VPC Gateway Endpoints to private route tables" },
    { "id": "nat-02", "category": "cross_az_spike", "item": "USW2-DataTransfer-Regional-Bytes", "baseline_value": "$360.00", "actual_value": "$2,280.00", "delta_usd": 1920.00, "severity": "high", "claim_action": "Enable Kafka follower-fetching (rack.id) and Kubernetes Topology Aware Routing" },
    { "id": "nat-03", "category": "idle_nat_gateway", "item": "USW2-NatGateway-Hours", "baseline_value": "$0.00", "actual_value": "$133.92", "delta_usd": 133.92, "severity": "low", "claim_action": "Destroy 4 orphaned sandbox NAT Gateways in us-west-2" }
  ],
  "reproducible_counterexamples": [
    { "item": "USW2-NatGateway-Bytes", "formula": "(153400 - 11400) * 0.045", "expected": 513.00, "observed": 6903.00, "delta_usd": 6390.00 }
  ],
  "sha256_proof": "7e3db293eb0534eee9661ec30d891e4aba8d68deb13ab9cea65660f0c8f7f752",
  "cache_hit": false,
  "verification": { "verified": true, "precision_usd": 0.01 },
  "billed_micros": 80000
}
Architectural Prevention: S3 and DynamoDB VPC Gateway Endpoints carry a $0.00/hr and $0.00/GB price tag. Pairing an automated nightly CUR diff against a 7-day rolling baseline via POST /api/v1/diff catches broken route tables within 24 hours instead of at month-end invoice close.

Run Egress Diff in 5 Seconds Next Domain: UPS Surcharge Audit ยท llms.txt