liveBook · Manning

Chargeback system

As explained in Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform

Chargeback is the allocation of incurred infrastructure or service costs to the teams or organizational units responsible for them.

A chargeback system allocates incurred infrastructure or service costs to the business units responsible for resource usage. In data centers, technology teams issue charges against unit budgets. section 12.0

For cloud infrastructure, cost estimation makes charge-back more transparent by parsing IaC, retrieving current provider prices, and testing proposed changes against team or organizational budgets. section 12.1.2

Budget-gated infrastructure change

A test aggregates server counts and machine types from testing and production IaC, calculates monthly Compute Engine costs, and rejects an added server when the total exceeds the $4,500 budget. section 12.1.2

Figure 12.3 Cost estimation parses IaC for machine types, calculates the monthly cost of the resource, and generates a value to compare with your expected budget.

Shows the workflow from IaC machine types through monthly cost calculation to comparison with an expected budget. section 12.1.2

How Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform covers it

How deep it goes
Connects charge-back with IaC cost estimation and budget tests, but does not detail organizational billing workflows.
Examples
Uses data-center unit budgets and a Google Cloud machine-type estimate tested against a monthly budget.
What you can do after
Apply it via IaC cost estimation to communicate team charge-back and reject changes that exceed a budget.
How it connects
Links infrastructure as code, cost estimation, budgeting, cloud billing APIs, and resource usage.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform. The section links point to the parts of the book it draws on.