15.1 · Why cost is an architectural concern
Pre-cloud, infrastructure was capex: bought once, depreciated over five years, owned by Finance. Post-cloud it is opex: metered by the second, owned by whoever's IAM role spun it up. Architectural decisions — region count, storage class, instance family, retention period, replication factor, sync vs async — directly choose the monthly invoice. A solution architect who hands a design to engineers without a unit-cost model has not finished the design.
15.2 · Finance vocabulary every architect should speak
| Term | Definition |
|---|---|
| TCO · Total Cost of Ownership | All costs over the asset life — purchase + operate + retire (Gartner, 1987) |
| ROI · Return on Investment | $(\text{gain} - \text{cost}) / \text{cost}$ — percentage |
| NPV · Net Present Value | Future cash flows discounted to today at rate $r$ — positive ⇒ invest |
| IRR · Internal Rate of Return | Discount rate that makes NPV = 0; compare to hurdle rate |
| Payback period | Months until cumulative savings equal investment |
| OpEx vs CapEx | Operating expenses (P&L) vs capital expenditures (depreciated) |
| Depreciation | Spreading a CapEx asset's cost over its useful life (straight-line, MACRS) |
| COGS · Cost of Goods Sold | Direct cost to deliver the product — cloud bills usually live here |
| Unit economics | Cost-per-transaction, cost-per-tenant, cost-per-request |
| Gross margin | (Revenue − COGS) / Revenue — board-room number |
| CAC / LTV | Customer acquisition cost vs lifetime value — SaaS health |
| Burn rate / runway | Monthly cash consumption / months until insolvency |
15.3 · FinOps Foundation framework
The FinOps Foundation (founded 2019, now part of the Linux Foundation) publishes the canonical practitioner framework. Six guiding principles:
- Teams need to collaborate (engineering, finance, product).
- Everyone takes ownership of their cloud usage.
- A centralised team drives FinOps (rate optimisation, governance).
- Reports should be accessible and timely.
- Decisions are driven by business value of cloud.
- Take advantage of the variable cost model of cloud.
The framework defines three iterative phases for every workload and every team:
visibility, allocation, benchmarking
right-size, RIs/SPs, eliminate waste
automate, govern, embed
15.4 · FinOps capabilities (Framework v2024/2025)
The 2024–25 refresh organises practice around six domains, each with several capabilities. Architects read this as a checklist of who-must-do-what.
| Domain | Representative capabilities |
|---|---|
| Understand Usage & Cost | Data ingestion · Allocation · Reporting & analytics · Anomaly management |
| Quantify Business Value | Planning & estimating · Forecasting · Budgeting · Unit economics · Benchmarking |
| Manage the FinOps Practice | Strategy · Education & enablement · Cultural change · Cadence & intersection with other frameworks |
| Optimize Usage & Cost | Rate optimisation (commitments) · Architecting for cloud · Workload management & automation |
| Workload Optimization | Containers, Kubernetes, data & AI, licensing |
| Cloud Sustainability | Carbon reporting · Green-aware scheduling · ESG alignment (added 2023) |
15.5 · FOCUS — FinOps Open Cost & Usage Specification
FOCUS (FinOps Open Cost & Usage Specification, v1.0 released June 2024) is a vendor-neutral schema for billing data so an organisation with AWS, Azure, GCP, OCI, and SaaS bills can normalise them into one fact table. Mandatory columns include BilledCost, EffectiveCost, ListCost, ProviderName, ResourceId, ServiceCategory, ChargeCategory (Usage/Purchase/Tax/Adjustment), BillingPeriodStart/End. The major providers publish native FOCUS exports — eliminating most of the bespoke ETL that used to swallow FinOps team time.
15.6 · Tagging strategy
Allocation depends on tags. A weak tag standard is the single biggest predictor of FinOps failure. Required tag set, enforced from day one:
| Tag | Purpose | Example |
|---|---|---|
cost-centre | Where the charge lands | CC-4711 |
environment | Filter prod vs non-prod | prod / staging / dev |
owner | Person or squad accountable | squad-checkout |
application | Product / service | orders-api |
criticality | Tier for governance | tier-1 / tier-2 / tier-3 |
data-classification | Ties to security & retention | public / internal / confidential / restricted |
Policy-as-code enforcement: AWS Service Control Policies + Tag Policies Azure Policy + Tag inheritance GCP Organization Policy + Required Labels HashiCorp Sentinel OPA / Conftest. Block creation of resources missing required tags — retro-fixing is futile.
15.7 · Cost allocation models
| Model | How it works | Trade-off |
|---|---|---|
| Showback | Costs shown to consumers; not actually billed internally | Visibility without political pain; weaker accountability |
| Chargeback | Costs billed against the cost-centre's budget | Strong accountability; risks gaming and friction |
| Centralised | One platform team owns commitments and shared infra | Best rate optimisation; harder unit-economics granularity |
| Federated | Each business unit manages own accounts/subscriptions | Local agility; lost discounts and duplicated effort |
| Hybrid (recommended) | Central FinOps team + embedded champions + chargeback for variable, showback for shared | Most organisations land here |
15.8 · The Optimize playbook
The levers, ordered roughly by typical payback period:
- Reaper for unused resources — unattached EBS volumes, idle load balancers, dormant snapshots, orphaned NAT gateways. 1–4 week payback.
- Right-sizing — use AWS Compute Optimizer, Azure Advisor, GCP Recommender. Most clusters run at < 30 % CPU.
- Commitment-based discounts — Reserved Instances, AWS Savings Plans (Compute / EC2 / SageMaker), Azure Reserved VM Instances + Savings Plan for Compute, GCP Committed Use Discounts (resource-based and flexible). Typical 30–70 % off list.
- Spot / pre-emptible / low-priority — 60–90 % off for interruption-tolerant workloads. AWS Spot, Azure Spot VMs, GCP Spot/Pre-emptible.
- Storage tiering — S3 Intelligent-Tiering / Glacier Instant/Flexible/Deep Archive, Azure Cool/Cold/Archive, GCS Nearline/Coldline/Archive. Lifecycle policies move data automatically.
- ARM / Graviton — AWS Graviton3/4, Azure Cobalt 100, GCP Axion. 20–40 % better price-performance for many workloads.
- Scale-to-zero — serverless (Lambda, Functions, Cloud Run), Knative, KEDA. Pay only for invocation.
- Data egress reduction — keep traffic in-region, use VPC endpoints, CloudFront/Front Door/Cloud CDN, peering.
- Log & observability retention — hot 7–30 d, warm 90 d, cold/object 1–7 y. Sample debug traces.
- Database optimisation — Aurora Serverless v2, autoscaling read replicas, partitioning, materialised views, query plan review.
15.9 · SaaS / vendor cost
| Trap | What goes wrong |
|---|---|
| Per-seat trap | Cost scales with org headcount, not value delivered |
| "Free for first N" trap | Adoption explodes past the free tier; bill arrives mid-quarter |
| Consumption surprises | Per-request or per-GB pricing without a budget alarm |
| Lock-in cost | Proprietary data formats; switching cost dwarfs licence savings |
| Exit cost | Data egress fees on termination; re-platforming effort |
| Shelfware | Licences purchased annually, used by 10 % of seats |
15.10 · Vendor selection rubric (build vs buy)
A weighted scorecard, signed off by Architecture + Procurement + Security + Finance.
| Criterion | Weight | What you score |
|---|---|---|
| Strategic differentiation | 20 % | Is this capability part of our competitive moat? (If yes, lean build.) |
| Switching cost | 15 % | Data export, standards alignment, contractual exit |
| 3-year TCO | 15 % | Licence + integration + run + exit |
| Security & compliance | 15 % | SOC 2 Type II, ISO 27001, regional residency, BAA/DPA |
| Support & SLA | 10 % | 24×7, response & resolution SLAs, named TAM |
| Roadmap fit | 10 % | Public roadmap, recency of releases, customer council |
| Financial viability | 10 % | Funding stage, runway, revenue, parent guarantee |
| Ecosystem & integrations | 5 % | SDKs, marketplace presence, terraform provider |
15.11 · Cost as a fitness function
Cross-reference Ch 05.9 and Ch 17.6. Treat cost like latency: assert it in CI, alarm it in production.
- Infracost (2020) — diff cost of a Terraform PR before merge; fail the build if monthly delta exceeds threshold.
- AWS Budgets / Cost Anomaly Detection · Azure Cost Management · GCP Billing Budgets — alarm on absolute and forecast.
- OpenCost (CNCF Sandbox, 2022) — Kubernetes pod/namespace/label-level cost.
- Kubecost — UI on top of OpenCost; chargeback reports.
- Unit-economics dashboards — $/checkout, $/active-user, $/tenant trended weekly.
# PR-time gate (CI pipeline)
infracost diff --path . --format json | \
jq -e '.totalMonthlyCost < 5000' || exit 1
15.12 · Sustainability
Cost and carbon correlate strongly but not perfectly. The architect must read both.
| Reference | What it gives you |
|---|---|
| AWS Well-Architected Sustainability Pillar (2021) | Six design principles; region selection by carbon intensity |
| Azure Emissions Impact Dashboard / Sustainability Manager | Scope 1/2/3 attribution by subscription |
| GCP Carbon Footprint + Active Assist | Region carbon data; idle resource recommendations |
| SCI — Software Carbon Intensity (Green Software Foundation, 2021) | $\text{SCI} = ((E \cdot I) + M) / R$ — Energy × grid Intensity + embodied, per functional unit |
| Cloud Carbon Footprint (Thoughtworks, OSS) | Cross-cloud emissions estimation |
| Carbon-aware scheduling | Shift batch to low-carbon regions/hours (WattTime, Electricity Maps APIs) |