Estimating Azure cost of infrastructure using Infracost
By using IaC with Terraform, we see that we are able to rapidly provision a large-scale cloud infrastructure.
The question that is often asked by people who oversee finance is what the estimated cost of this infrastructure before being deployed is, but they also ask for an estimate of the delta of costs at each change of this infrastructure.
There is a tool called Infracost that allows you to estimate costs based on a Terraform configuration that involves a cloud infrastructure (Azure, AWS, or GCP).
Infracost (whose official website is https://www.infracost.io/) is a solution that consists of three components:
- The binary, which is open-source and free and which allows all the basic operations of resource pricing.
- Infracost Cloud, which is a SaaS that allows you to have integrated CI/CD features on
pull requests
, in addition to the features of the free version. Infracost also allows you to have policy...