Cost and FinOps
FinOps is the practice of bringing financial accountability to the variable spending model of cloud, so that engineering, finance and the business can make informed trade-offs between speed, cost and quality.
In a data centre, cost was mostly decided once, by a procurement process, years in advance. In the cloud, every engineer who can run terraform apply is making spending decisions, every day, and the bill arrives monthly with every one of those decisions itemised. That’s a huge benefit (you only pay for what you use) and a huge risk (you pay for everything you forgot to turn off).
Cost is a non-functional requirement. Design for it, test for it and watch it in production.
Cost is set by architecture
The biggest cost decisions aren’t made by finance; they’re made by architects and engineers. Choosing serverless or always-on compute, where data lives and how much of it moves between regions, how chatty services are, what gets logged: these choices set the shape of the cost curve long before anyone looks at a bill. That’s why cost belongs in the architectural profile and in Well-Architected reviews, alongside performance and security.
Unit economics
The total bill is the least useful number in cloud finance. A bill that doubled might be a disaster or a triumph, depending on whether the business doubled too. Instead, track unit costs: the cost per order, per active customer, per document processed or per model inference.
Unit costs connect spending to business value. In simple terms, the benefit of a piece of work is the value it delivers minus the cost of delivering and running it. If you can’t express cost per unit of value, you can’t really tell whether a change was an improvement.
The FinOps lifecycle
The FinOps Foundation describes three repeating phases:
- Inform: make costs visible and allocate them to the teams and products that cause them, using consistent tagging, separate accounts and showback (or chargeback).
- Optimise: reduce waste and buy smarter. That means rightsizing, turning off idle and non-production resources out of hours, storage lifecycle policies, commitment discounts (savings plans and reservations) for steady baseline load, and spot or pre-emptible capacity for interruptible work.
- Operate: make cost part of everyday work, with budgets and anomaly alerts, cost estimates in pull requests, cost in the Definition of Done and regular review against value.
Common cost traps
- Data transfer: moving data between regions, between zones and out to the internet is often the surprise line on the bill.
- Idle and forgotten resources: unattached disks, old snapshots, oversized databases and that GPU instance from last month’s spike.
- Over-provisioning “for safety”: in the cloud you can scale up when you need to. Paying for peak capacity all year defeats the point.
- Telemetry: verbose logging at high volume can cost more than the service it describes.
- AI inference: token-based pricing scales with usage and prompt size. Model choice, caching and prompt design are cost decisions (see Architecting for AI).
- Lift and shift: virtual machines moved unchanged from a data centre and left running 24/7 frequently cost more than they did on-premises (see Migration).
Anti-patterns
We’ve seen cost management go wrong in predictable ways:
- Cost-cutting by decree: a top-down “reduce cloud spend by 30%” target with no link to value. Teams will hit it by moving costs somewhere less visible, cutting resilience or stopping experiments, which is exactly the behaviour you didn’t want.
- Finance owns it alone: the people who can change costs are engineers. If they never see the bill, nothing changes.
- The annual purge: one big cost review a year, then eleven months of drift. Little and often beats big and rare.
- Optimising before validating: spending weeks squeezing pennies out of something that may not survive its next funding decision. Prove the value first, then optimise.
Treat cost forecasts like any other estimate: they’re guesses with a level of confidence attached, and they improve as you learn. Review them regularly and be willing to decide to continue, change or stop.