Cost optimization aligns infrastructure usage and capacity with demand and organizational requirements. Treat cost as an IaC concern alongside security, then revisit decisions as systems, customers, and billing change. section 12.0
Apply the practice through an iterative operational cycle:
- Identify cost drivers and unused resources before provisioning or changing infrastructure. section 12.0
- Build environments on demand, compose infrastructure across providers when appropriate, and evolve deployments across regions. section 12.3
- Use monitoring and instrumentation to match capacity to changing demand; refactor or re-platform systems that cannot scale elastically. section 12.3.4
- Test production changes with feature flags, canary deployment, or blue-green deployment, and maintain a roll-forward plan for failure. section 12.3.4
Seasonal platform demand
A conference platform sees its greatest demand in May, June, October, and November. Aggregated usage metrics can guide capacity changes, architecture improvements, and negotiations for reserved capacity or volume discounts. section 12.3.4
Figure 12.11 Cost optimization requires IaC practices for scaling and deploying infrastructure resources.
Relates cost optimization to IaC practices for scaling and deploying infrastructure resources. section 12.3



