A monthly budget sets a one-month spending limit for resources or services. In infrastructure workflows, compare estimated costs against the limit before approving changes. section 12.1.2
Use the budget as a proactive infrastructure check:
- Parse infrastructure-as-code configuration for resource attributes and cost drivers. section 12.1.2
- Calculate estimated monthly costs using resource quantities, regions, machine types, and pricing data. section 12.1.2
- Run a policy test that fails when the total exceeds the permitted budget. section 12.1.2
Budget test failure
A compute estimate of $4,687.62 fails a $4,500 monthly budget test after another server is added. A separate check allows a 10% buffer above a $5,000 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.
Follow the workflow from IaC machine types through monthly cost calculation to comparison with the expected budget. section 12.1.2
