Cost and ownership
Tag every resource with its owner and give every account a budget with alerts. Delete what sits idle, size servers from use and show cost per request.
- Required 1
- Recommended 4
- Optional 3
A cloud bill grows from things nobody remembers starting. These rules make every resource belong to someone and keep spending in sight. Tracking the cost of a running service each month is covered in Watch what the service costs.
Required
Give every account a budget with alerts
INF-53Create a monthly budget in code for every account. Alert the owning team when the forecast passes 80 percent and when spending passes 100 percent.
Recommended
Tag every resource with its owner
INF-52Tag every resource with its owner, service, environment and the tool that manages it. Refuse any plan that creates a resource without them.
Delete resources that sit idle
INF-54Run a weekly job that lists idle resources and deletes them after their owner has had 7 days to object. Snapshot every disk before the job deletes it, and never let it touch backups.
Size servers from what they use
INF-55Every quarter, compare each server's size with its measured use over 14 days. Step down one size when its 95th percentile CPU stays under 40 percent and memory under 50 percent.
Track cost per request
INF-72Divide each service's monthly cost by the work it did, such as cost per 1,000 requests or per active customer. Send each owning team its own figures every month, and alert when a unit cost rises more than 20% from the month before.
Optional
Show the cost of each change in review
INF-56Show the monthly cost change of every infrastructure pull request in the review. Ask the budget owner to approve any change above a set amount.
Buy commitment discounts for steady use
INF-57After a service has run 90 days, cover its steady base with a commitment discount. Review the cover every month and buy in small steps.
Track carbon per request beside cost
INF-69Each month, work out the carbon emitted per 1,000 requests, using the Software Carbon Intensity method of ISO/IEC 21031. When two regions pass the region choice, pick the one with the lower grid carbon intensity.
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/infrastructure/cost-and-ownership">Agent Wranglers infrastructure and environments playbook</a>. In code you write, add a comment next to it with the same link.