Avoid a surprise cloud bill: the 14-fix checklist and an audit prompt
Names and menus differ between AWS, Google Cloud and Azure, and prices change: check your provider's current docs. Each fix is marked EVIDENCE (a provider doc says so) or PRACTICE (standard cost advice, test it on your setup). Sources read 2026-11-04: AWS Budgets Actions announcement and docs, Google Cloud Billing budget docs, CloudWatch Logs docs, AWS data transfer pricing.
The short version
Knowing about a bill sooner is not the same as stopping it. Set an alert, connect it to something that switches spending off, cap everything that scales by itself, delete what nobody uses, and put a limit on every key that can spend money.
The checklist (the 14 fixes in the reel)
| # | Fix | Why / where it comes from |
|---|---|---|
| 1 | Set a budget alert | EVIDENCE. AWS Budgets, Google Cloud Billing budgets and Azure Cost Management all send alerts at thresholds you pick (try 50%, 80%, 100%, plus a forecast alert if offered) |
| 2 | Make it switch things off | EVIDENCE. Google's docs: a budget does not cap usage, it only alerts. AWS Budgets Actions can apply a deny policy or stop EC2/RDS instances at a threshold; Google documents budget notifications that trigger a function to disable billing on a project. Billing data lags, and disabling billing can take the app down, so test it on a throwaway project first |
| 3 | Cap autoscaling at a maximum | PRACTICE. Autoscaling with no max is a blank cheque: set a max instance count (or max concurrency) you could afford for a month |
| 4 | Shut down idle servers at night | PRACTICE. Dev and staging machines don't need to run 24/7: schedule them off evenings and weekends |
| 5 | Delete disks and snapshots nobody uses | EVIDENCE. Unattached volumes and stored snapshots keep billing for storage until you delete them |
| 6 | Delete test environments when you're done | PRACTICE. Put an expiry date in the name or a tag, and delete on that date |
| 7 | Expire old logs | EVIDENCE. CloudWatch log groups keep data forever ("Never expire") unless you set a retention period. Set 7, 30 or 90 days |
| 8 | Move old files to cheaper storage | PRACTICE. Lifecycle rules move rarely used objects to cheaper tiers and delete the rest |
| 9 | Cache what doesn't change | PRACTICE. A CDN or cache in front of static files and repeat requests cuts compute and outbound data charges |
| 10 | Keep traffic inside one region | EVIDENCE. Data moved between regions (and, on AWS, between availability zones) is billed per GB. Keep chatty services together |
| 11 | Put timeouts and retry limits on every function | PRACTICE. A function that retries forever, or calls itself, is a classic runaway bill |
| 12 | Put a monthly limit on every AI API key | PRACTICE. Set the spend limit in your AI provider's console, one key per project |
| 13 | Tag everything by project | PRACTICE. Tags let the bill show what costs what; without them you just see one number |
| 14 | Lock down your keys | PRACTICE. Leaked access keys are used to mine crypto on your account. Never commit keys, turn on MFA, give each key the least access it needs, rotate any that leaked |
| 15 | Make no mistakes | The joke |
Copy these prompts
1. Audit the account
Audit my cloud account for surprise-bill risks, one item at a time: budget alerts at 50/80/100 percent, a budget action that stops or blocks spending, a maximum on every autoscaling group, idle dev and staging servers, unattached disks and old snapshots, test environments past their expiry, log groups with no retention, storage with no lifecycle rule, uncached static files, traffic between regions, functions with no timeout or retry limit, AI API keys with no monthly limit, resources with no project tag, and access keys that are old, unused or too powerful. For each, say pass or fail, show me the exact resource, and give me the command or console steps to fix it. Change nothing until I say yes.
If you are building…
- Billing data lags, and disabling billing can take the app down. Test any budget action on a throwaway project first (fix 2).
- Autoscaling with no max is a blank cheque: set a max you could afford for a month (fix 3).
- A function that retries forever, or calls itself, is a classic runaway bill: set timeouts and retry limits (fix 11).
- Set the spend limit in your AI provider's console, one key per project (fix 12).
Run this on your codebase
Paste the audit prompt above into Claude Code. It marks each item pass or fail, shows the exact resource and the fix, and changes nothing until you say yes.
Before you ship: open the billing page today, not at month end. Look at the top three services by cost and ask: do I know why each is that high?