Costs
Whatever the strategy, cost is a universal business driver. Every organization wants to lower its total cost of ownership (TCO) and its infrastructure costs, so that money goes to what differentiates it rather than to running the basics. In the cloud and AI era this has become harder: costs are variable, spread across many teams, services and providers, and they can grow quickly and quietly.
FinOps (cloud financial operations) is the discipline that brings engineering, finance and business together to make spending visible, understood and optimized, so that every euro spent on technology delivers business value.
Total cost of ownership
The visible price of a system, such as a cloud bill or a license fee, is only part of what it costs. TCO includes everything needed to build, run and eventually retire it:
| Cost category | Examples |
|---|---|
| Infrastructure | Compute, storage, network, data transfer, data center space and power, hardware refreshes |
| Software and licenses | Commercial software, SaaS subscriptions, support contracts, database and operating system licenses |
| AI usage | Model tokens, embeddings, GPU capacity, AI platform subscriptions |
| People | Development, operations, support, security, on-call; usually the largest category |
| Delivery and change | Projects, migrations, upgrades, integration work |
| Risk and quality | Incidents, downtime, security breaches, technical debt slowing future work |
| Exit | Data migration, decommissioning, contract termination |
Comparing options on visible costs alone leads to wrong decisions. A self-hosted open source tool may have no license fee but require two engineers to run it; a managed service may cost more per hour but less in total.
The FinOps framework
The FinOps Foundation describes FinOps as an iterative practice with three phases:
| Phase | Focus | Typical activities |
|---|---|---|
| Inform | Visibility and allocation | Collect billing data, allocate costs to teams and products, build reports and forecasts, calculate unit costs |
| Optimize | Rates and usage | Right-size resources, remove waste, buy commitments for steady usage, improve architectures |
| Operate | Governance and continuous improvement | Budgets and alerts, policies, cost reviews, embedding cost awareness in everyday engineering decisions |
Key principles:
- Teams own their costs. The engineers who make architecture decisions see the cost of those decisions and are accountable for them.
- Decisions are driven by business value, not by cost alone. Spending more is fine when it creates more value.
- Data is timely and accessible to everyone who needs it, not hidden in a monthly finance report.
- A central team enables, setting up tools, rates and practices, while teams act on their own costs.
Common approaches
Make costs visible and allocated
- Tagging and labeling: every resource carries tags for owner, team, product, environment and cost center, set automatically through infrastructure as code and golden paths and enforced by policies.
- Allocation: shared costs (platforms, networks, support plans) are split by fair rules, so every team sees its full cost.
- Showback and chargeback: showback reports costs to teams; chargeback also bills them internally. Showback is usually the better start.
- Unit economics: cost per transaction, per customer, per order or per AI conversation. Unit costs show whether growth is efficient, even when the total bill rises.
- Common data format: the FOCUS specification (FinOps Open Cost and Usage Specification) defines a standard format for billing data across cloud, SaaS and other providers, which makes combining and comparing costs much easier.
Optimize usage: use less
| Approach | Description |
|---|---|
| Right-sizing | Match instance sizes, database tiers and container requests to actual usage |
| Removing waste | Delete unused resources: idle instances, unattached disks, old snapshots, forgotten test environments |
| Scheduling | Stop non-production environments outside working hours |
| Autoscaling and serverless | Pay for actual demand instead of peak capacity (see cloud migration) |
| Storage tiering and lifecycle | Move rarely used data to cheaper storage classes automatically, for example with S3 Intelligent-Tiering; delete data past its retention |
| Data transfer | Keep chatty systems in the same region, use caching and CDNs, avoid unnecessary egress |
| Architecture | Managed services instead of self-operated ones where TCO is lower; fewer duplicate systems (see organizing legacy spaghetti) |
Optimize rates: pay less for what you use
| Approach | Description |
|---|---|
| Commitment discounts | Savings plans, reserved instances or committed use discounts for steady baseline usage |
| Spot and preemptible capacity | Large discounts for interruptible work such as batch jobs, CI and some data processing, for example EC2 Spot |
| Negotiated agreements | Enterprise discounts with cloud and software vendors based on committed volume |
| License optimization | Remove unused SaaS seats and licenses; bring existing licenses to the cloud where allowed; consolidate tools that do the same thing |
Control AI costs
AI usage is a fast-growing cost category with its own levers:
- Model choice per task: smaller, cheaper models for simple steps; the most capable models only where needed.
- Prompt and context efficiency: concise prompts and tool results; caching of stable context.
- Batch processing for non-urgent work, which is usually cheaper.
- Budgets and quotas per team and use case, enforced centrally in an LLM gateway such as LiteLLM (see the agents reference architecture).
- Cost per completed task, tracked through observability platforms such as Langfuse (see agent-centric applications), to judge whether AI features pay off.
Shift cost left
Cost is easiest to change during design, not after deployment:
- Estimate costs in pull requests for infrastructure changes, for example with Infracost for Terraform.
- Include cost in architecture decisions and ADRs, with expected TCO and unit cost.
- Provide cost-efficient defaults in golden paths: right-sized templates, autoscaling, lifecycle rules and tagging built in.
Govern continuously
- Budgets and alerts per team, product and account, with notifications before limits are reached.
- Anomaly detection to catch unexpected spikes within hours, not at the end of the month.
- Regular cost reviews where teams look at their trends, unit costs and optimization opportunities.
- Policies as guardrails: required tags, allowed instance types and regions, limits on expensive services in non-production.
Common tooling
| Category | Tools |
|---|---|
| AWS native | Cost Explorer, AWS Budgets, Cost Anomaly Detection, Compute Optimizer, Trusted Advisor |
| Azure native | Microsoft Cost Management, with budgets, analysis and Azure Advisor recommendations |
| Google Cloud native | Cloud Billing reports and budgets, Recommender |
| Multi-cloud FinOps platforms | IBM Cloudability, Flexera One, CloudZero, Vantage, Finout |
| Kubernetes cost allocation | OpenCost (open source, CNCF), IBM Kubecost |
| Cost estimation in development | Infracost |
| SaaS spend management | Zylo and similar tools for licenses and subscriptions |
| AI cost tracking | LLM gateways such as LiteLLM, observability platforms such as Langfuse, and the cost features of FinOps platforms that now include AI spend |
Cloud-native tools are the natural start: they are included, accurate and detailed. Multi-cloud platforms add value when costs span several providers, when allocation rules become complex, or when business unit costs must combine cloud, SaaS and AI spend.
Getting started
- Make costs visible: enforce tagging, set up allocation per team and product, and give teams access to their own cost data.
- Pick the quick wins: delete unused resources, schedule non-production environments, right-size the largest workloads.
- Commit for the baseline: buy commitment discounts for steady usage once it is understood.
- Define unit costs for the main products and track them over time.
- Build it into the way of working: budgets and alerts, cost in design decisions and pull requests, regular reviews, and cost-efficient defaults in platform building blocks.
Common pitfalls
- Cost cutting without context: reducing spend on things that create value, or optimizing what is cheap while ignoring what is expensive.
- Central team does everything: a FinOps team that optimizes alone, without the engineers who make the decisions.
- Monthly surprises: finding cost spikes only when the invoice arrives.
- Infrastructure only: ignoring licenses, SaaS, AI usage and people, which together often exceed infrastructure costs.
- Optimizing once: treating cost optimization as a project instead of a continuous practice.