Skip to main content

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 categoryExamples
InfrastructureCompute, storage, network, data transfer, data center space and power, hardware refreshes
Software and licensesCommercial software, SaaS subscriptions, support contracts, database and operating system licenses
AI usageModel tokens, embeddings, GPU capacity, AI platform subscriptions
PeopleDevelopment, operations, support, security, on-call; usually the largest category
Delivery and changeProjects, migrations, upgrades, integration work
Risk and qualityIncidents, downtime, security breaches, technical debt slowing future work
ExitData 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:

PhaseFocusTypical activities
InformVisibility and allocationCollect billing data, allocate costs to teams and products, build reports and forecasts, calculate unit costs
OptimizeRates and usageRight-size resources, remove waste, buy commitments for steady usage, improve architectures
OperateGovernance and continuous improvementBudgets 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​

ApproachDescription
Right-sizingMatch instance sizes, database tiers and container requests to actual usage
Removing wasteDelete unused resources: idle instances, unattached disks, old snapshots, forgotten test environments
SchedulingStop non-production environments outside working hours
Autoscaling and serverlessPay for actual demand instead of peak capacity (see cloud migration)
Storage tiering and lifecycleMove rarely used data to cheaper storage classes automatically, for example with S3 Intelligent-Tiering; delete data past its retention
Data transferKeep chatty systems in the same region, use caching and CDNs, avoid unnecessary egress
ArchitectureManaged 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​

ApproachDescription
Commitment discountsSavings plans, reserved instances or committed use discounts for steady baseline usage
Spot and preemptible capacityLarge discounts for interruptible work such as batch jobs, CI and some data processing, for example EC2 Spot
Negotiated agreementsEnterprise discounts with cloud and software vendors based on committed volume
License optimizationRemove 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​

CategoryTools
AWS nativeCost Explorer, AWS Budgets, Cost Anomaly Detection, Compute Optimizer, Trusted Advisor
Azure nativeMicrosoft Cost Management, with budgets, analysis and Azure Advisor recommendations
Google Cloud nativeCloud Billing reports and budgets, Recommender
Multi-cloud FinOps platformsIBM Cloudability, Flexera One, CloudZero, Vantage, Finout
Kubernetes cost allocationOpenCost (open source, CNCF), IBM Kubecost
Cost estimation in developmentInfracost
SaaS spend managementZylo and similar tools for licenses and subscriptions
AI cost trackingLLM 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​

  1. Make costs visible: enforce tagging, set up allocation per team and product, and give teams access to their own cost data.
  2. Pick the quick wins: delete unused resources, schedule non-production environments, right-size the largest workloads.
  3. Commit for the baseline: buy commitment discounts for steady usage once it is understood.
  4. Define unit costs for the main products and track them over time.
  5. 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.