Cost allocation, exports and unit economics
FinOps connects spending to outcomes
FinOps is a collaboration between engineering, finance and business owners to measure and improve the value of cloud spending. For a fictional order service, measure the monthly cost of serving successful orders, not just the EC2 bill. AWS Organizations consolidated billing groups member-account charges; assign ownership using linked accounts, activated cost allocation tags and Cost Categories (rules that group billing lines). Tags can be absent, delayed or unsupported; keep unallocated spend visible. Account tags and resource tags are distinct dimensions. Showback reports costs to teams; chargeback assigns those costs to internal budgets under an agreed policy.
Choose and reconcile a billing dataset
Use Cost Explorer to group and filter historical charges and examine forecasts. For detailed analysis, Data Exports can deliver CUR 2.0 to S3 with chosen columns and time granularity; handle nested tags and report revisions in ingestion. Read-only billing APIs such as GetCostAndUsage can automate grouped queries; check pagination, date boundaries, permissions and API charges. Restrict access to exports. Define currency, reporting period and cost basis: unblended cost represents line charges, while amortized cost spreads commitment fees across usage periods; net variants account for applicable discounts. Do not mix bases or count both a commitment fee and its allocated amortized cost twice. Reconcile results against the same billing scope, credit and tax policy; provisional figures can change.
Calculate a meaningful unit cost
All values below are invented USD cents, not AWS prices. Orders owns 60000 cents, search owns 30000 and shared infrastructure costs 10000. Allocate shared cost 75:25 using a measured usage driver: orders becomes 67500 and search 32500. Total remains 100000 cents ($1000). For 45000 successful orders, orders cost per success is 1.5 cents. A drop in total spend can still raise cost per order if volume falls faster. Count retries as cost, not successful orders; define deduplication and the time window. With zero successes report the ratio as undefined, not free. Publish the allocation rule and reconcile total before charging teams.
{ "direct": { "orders": 60000, "search": 30000 }, "shared": 10000, "orders_percent": 75, "successes": 45000}Look beyond the compute bill
Inventory hourly and usage-driven costs: NAT gateway hours and processed bytes, public IPv4 addresses, inter-AZ and inter-Region transfer, logs ingestion and retention, KMS requests, storage requests and retrieval, backups, license fees, cluster control planes, and AI input/output tokens or provisioned capacity. Include shared and idle resources. An endpoint may reduce NAT traffic but add endpoint hourly fees; measure traffic and resilience rather than assuming savings. For real estimates record Region, date, service/SKU, pricing tier, units, discounts, tax and eligibility from official pricing. Never treat credits as a spending cap. Practice: change the shared split to 50:50 and calculate the new unit cost.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Cost allocation, exports and unit economics — knowledge check
Reason about cost allocation, commitment scenarios and governance.
What does showback do?
How should unowned costs be handled?
What does amortized cost represent?
With 67500 cents and 45000 successes, what is cost per success?
What is the ratio with zero successful transactions?