Cloud bills rarely jump. They creep: a test server nobody turned off, snapshots kept forever, a database sized for a launch that never got that busy. Paid in dollars, that creep hurts more every time the rupee moves. Here is the order we work in when we review a cloud account.
1. See where the money goes
Turn on cost allocation tags or labels and group the bill by project, environment and service. Most accounts have a few line items that make up most of the bill. Start there, not with the long tail.
2. Remove what nobody uses
The safest savings come first, because nothing depends on them:
- servers that are stopped but still have disks attached, or running with almost no CPU use for weeks;
- unattached disks and volumes left behind when servers were deleted;
- old snapshots and machine images, often months or years of them;
- unused static IP addresses and idle load balancers;
- whole test or demo environments that outlived their project.
Before deleting, check with the owner and take a final snapshot of anything you are unsure about. Then delete that snapshot later too.
3. Right-size what is left
Look at real CPU and memory use over a few weeks, not at what was chosen on day one. A server that never goes above 15% CPU can usually drop a size or two. Newer instance generations, and ARM-based ones where your software supports them, often give the same performance for less. Change one thing at a time and watch the results.
4. Switch off what only works office hours
Development and test servers that nobody uses at night or at weekends can be stopped on a schedule. That alone can remove well over half of their running hours.
5. Commit only for the steady base
Reserved instances and savings plans give large discounts for committing to one or three years. Use them for the load you are sure will still be running, after you have cleaned up and right-sized. Committing first locks in the waste.
6. Watch storage and data transfer
- Move old data to cheaper storage classes automatically with lifecycle rules.
- Keep logs for as long as you need them, not forever.
- Check data transfer charges, especially traffic between regions and out to the internet. A content delivery network can reduce both cost and load.
7. Keep it under control
Set budgets with alerts, review the bill monthly, and define servers as code (with Terraform or similar) so nothing is created by hand and forgotten. A short monthly review keeps the bill where you left it.
When moving out is the answer
For steady workloads that do not need the cloud’s flexibility, a few well-run servers in a local data centre can cost a fraction of the cloud bill and keep data in Sri Lanka. It is worth doing the sums before the next renewal.