Cloud cost and FinOps
Read a cloud bill like an operator: tag everything, allocate cost to teams, find idle resources, and know when a commitment discount pays off.
Compute, storage and networking building blocksVirtual networks, subnets and security groups
Cloud cost and FinOps
The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.
Not started
What you'll learn
- The cloud turns spending into an operating expense that any engineer can increase with one command, so cost becomes an engineering signal like latency, not only finance's problem.
- FinOps is the practice of making cost visible to the people who cause it, holding teams accountable for it, and optimizing it together with finance.
- Allocation needs tags or labels on every resource. Untagged spend is spend nobody owns, so enforce tags at creation time with policy.
- The quickest savings are usually idle and forgotten resources such as stopped-but-billed disks, old snapshots, oversized instances and test environments left running.
- Commitment discounts like reserved instances and savings plans only pay off above a break-even utilization. Commit to your steady baseline, not your peak.
The problem: anyone can spend
In a data center, spending money took a purchase order, a vendor, weeks of lead time and a manager’s signature. In the cloud an engineer can start a GPU instance with one command, and the bill arrives a month later. The decision has moved from finance to engineering, and the feedback is a month late.
Finance sees a big number with no way to tell which team or feature caused it. Engineers make the decisions but never see the cost. FinOps closes that gap. The FinOps Foundation describes it as an operational framework and cultural practice. In practice it is a loop: make cost visible to the people who cause it (inform), act on it (optimize), and make it part of normal work (operate).
The software-architect roadmap treats cost as an architectural constraint. This lesson is the operator’s view: reading the bill.
Where the money goes
Most bills have the same big lines:
- Compute: VMs, containers, functions. Usually the largest line.
- Managed databases: often second, and hard to shrink later.
- Storage: cheap per gigabyte, but it accumulates quietly. Snapshots, old log buckets and unattached disks keep billing after the thing they belonged to is gone.
- Network: data leaving the cloud (egress), traffic between zones, NAT gateway processing. This is the line people most often fail to predict.
Allocation: tag everything
You can’t hold a team accountable for spend you can’t attribute to it. Every provider supports key-value tags (AWS, Azure) or labels (Google Cloud) on resources, and its billing export carries them. Agree on a small set, such as team, env and service, and enforce them at creation: AWS tag policies and service control policies, Azure Policy, Google organization policies, or a check in the infrastructure-as-code pipeline that rejects untagged resources.
Shared costs, like a NAT gateway or a platform team’s cluster, can be split by a rule such as share of traffic. Showing teams their share is showback. Actually billing them internally is chargeback.
A worked example: a month’s cost report
All three providers can export detailed billing data, to S3, a storage account or BigQuery. I don’t have a cloud account, so I made a ten-line billing export by hand, shaped like a simplified version of those exports, and wrote a Python report over it. The rows and prices are invented.
resource,service,team,env,usd,avg_cpu_pct
vm-web-1,compute,storefront,prod,212.40,41
vm-web-staging,compute,storefront,staging,212.40,2
bucket-logs-2023,storage,,,96.10,
vm-test-jenkins,compute,,,212.40,1
...
The report groups by team, finds compute under 5% average CPU, and compares a commitment discount with on-demand pricing at several utilization levels:
$ python3 report.py
total $2,579.20
storefront $1,277.20 49.5%
data $ 743.75 28.8%
(untagged) $ 308.50 12.0%
platform $ 249.75 9.7%
idle compute (<5% CPU): vm-web-staging, vm-test-jenkins = $424.80/month
VM used 730h/730h: on-demand $212.40 committed $127.44
VM used 500h/730h: on-demand $145.48 committed $127.44
VM used 400h/730h: on-demand $116.38 committed $127.44
VM used 300h/730h: on-demand $ 87.29 committed $127.44
Three findings, each typical of a first real report:
- 12% of spend has no owner. A 2023 log bucket and a test Jenkins box nobody tagged. Finding owners, or deleting, is step one.
- 16% of the bill is idle. A staging VM running all month at 2% CPU could be stopped outside working hours, or replaced by something that scales to zero.
- Commitments have a break-even. At 40% off, the commitment is paid every hour, used or not, so it beats on-demand only above 60% utilization (438 of 730 hours). Commit to the baseline you are sure of, and leave spiky load on on-demand or spot capacity.
The usual levers
In rough order of effort: delete what is unused, stop what is idle out of hours, rightsize what is oversized, set lifecycle rules that move old objects to cheaper storage tiers and expire them, commit to the steady baseline, and use spot or preemptible instances for work that can be interrupted. Native tools help: AWS Cost Explorer and Budgets, Azure Cost Management, and Google Cloud’s billing reports and budgets. Set a budget alert on day one, so a runaway resource shows up in days, not at month end.
About the video
“FinOps and Azure! Understanding what FinOps is and why we care.” is from John Savill’s Technical Training, published April 2024, 39 minutes 13 seconds. The chapters run from CapEx versus OpEx through what FinOps means, accountability, visibility, cost management, tags, governance with Azure Policy, monitoring and optimization. The first 17 minutes or so are provider-neutral, and the later chapters show the same ideas in Azure. English is judged from the title, description and channel. Google Cloud Tech’s four-minute video is a shorter introduction, and the FinOps Foundation’s framework page defines the practice.
Where this fits
That closes the cloud foundations. The next group is about knowing what your systems are doing once they run, starting with metrics and Prometheus.
Check yourself
Why does FinOps put cost data in front of engineers rather than only finance?
Engineers make the decisions that create the cost, such as instance sizes, replicas, data transfer and retention, so they need to see the effect of those decisions to change them.
A 1-year commitment is 40% cheaper than on-demand but is paid whether you use it or not. Above what utilization does it pay off?
Above 60% of the hours. The committed price is 0.6 of the on-demand price for every hour, so it wins once you would otherwise pay on-demand for more than 60% of them.
What is the risk of a large share of untagged spend?
Nobody owns it, so nobody reviews or cuts it, and showback or chargeback reports are wrong for every team.
Which three cost items often surprise teams on a first bill?
Data transfer out of the cloud or between zones, NAT gateway processing charges, and storage that outlives its use, such as old snapshots and log buckets.
Go deeper
Notes
Notes are saved to your account.
Everything else on this page works without one — progress and bookmarks keep themselves in this browser and come with you when you sign in. Notes are the one thing worth not trusting to a browser you might clear.
Your notes could not be loaded.