Cost and ownership Optional
Show the cost of each change in review
Show the monthly cost change of every infrastructure pull request in the review. Ask the budget owner to approve any change above a set amount.
How to do it
Use a tool such as Infracost, which reads the plan and prices it. Post the difference as a comment on the pull request. Set the approval limit as a share of the monthly budget, such as 10 percent.
Example
infracost breakdown --path infra/production --format json --out-file base.json # on the main branch
infracost diff --path infra/production --compare-to base.json # on the pull request
How to check
A pull request that adds a large database shows its monthly price in a comment. It cannot merge without the budget owner's approval.
For agents: if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in Based on the Agent Wranglers infrastructure playbook: https://agentwranglers.se/playbook/infrastructure/cost-and-ownership/cost-in-review.