Infracost creates cloud cost estimates for infrastructure as code in pull requests, so developers know how much their cloud resources will cost before launching them. It can be run in CLI, or in CI where it leaves a comment in the pull request like ‘this change will increase your AWS bill by 25% next month’ with a detailed breakdown. This creates a more cost-aware engineering organization.
Getting Started with Terraform
Download, and run Infracost: 1 - Run 'brew install infracost' in CLI 2 - Run 'infracost register' 3 - Run 'infracost breakdown --path .' pointing it to the TF file. You can also quickly add Infracost to your CI such as GitHub Actions, CircleCI, BitBucket, Atlantis, Jenkins and more.