FinOps and Cloud Cost Optimisation
Make cloud spend visible, attributable and efficient through tagging, rightsizing, commitment discounts and cost-aware engineering.
Intermediate · about 4 hours · difficulty 2/5
Learn first: Cloud Networking and Storage Design
Cloud bills grow quietly: idle instances, oversized databases, forgotten snapshots, chatty cross-zone traffic. FinOps is the practice of bringing financial accountability to variable cloud spend, shared between engineering, finance and product.
The FinOps loop
- Inform: make costs visible and attributable. Enforce tags or labels (team, service, environment), split shared costs, and give teams their own dashboards and budgets with alerts.
- Optimise: reduce waste and buy smarter.
- Operate: bake cost into everyday decisions and review it regularly.
Common savings
- Rightsizing: most instances and pods request far more CPU and memory than they use. Use utilisation data and tools like the Kubernetes VPA recommender.
- Schedule non-production environments to shut down at night and weekends.
- Commitments: Savings Plans, Reserved Instances and committed-use discounts for steady baseline load.
- Spot / preemptible capacity for stateless, fault-tolerant work such as CI runners and batch jobs.
- Storage hygiene: delete unattached volumes and old snapshots, use lifecycle policies and cheaper tiers.
- Network: keep chatty services in one zone where acceptable, use private endpoints instead of NAT, and cache at the edge.
- Architecture: serverless for spiky workloads, ARM-based instances for better price-performance.
Kubernetes cost
Costs hide inside shared clusters. Tools such as OpenCost or Kubecost allocate node costs to namespaces and workloads based on requests; Karpenter or cluster autoscaler bin-packing and consolidation reduce idle nodes.
Unit economics
Track cost per customer, per request or per order, not only the total. A rising bill with a falling unit cost can be a healthy business.
Good enough to move on: you can build a cost report by team from tags, find and fix three sources of waste in an account, and estimate savings from a commitment purchase.
Key concepts
- Inform, optimise, operate
- Tagging and cost allocation
- Budgets and anomaly alerts
- Rightsizing
- Savings Plans, reservations and spot
- Storage and network waste
- Kubernetes cost with OpenCost
- Unit economics
Mini project
Audit a cloud account (your own or a sandbox): enforce cost tags with a policy, build a cost-by-service report, set budget alerts, and write up three concrete savings with estimated monthly amounts.
Check yourself
When is buying a one-year commitment for compute a bad idea, even if it offers a large discount?
Free resources
- FinOps Framework (FinOps Foundation)
- AWS Cost Management (AWS)
- OpenCost (OpenCost)