0.9.24 (May 04 2022)
Infracost v0.9.24 fixes minor inconsistencies we released in v0.9.23. The most important being the --compare-to
flag is now exclusive to the diff
command. Thank you to all the fantastic community members who helped us try out the interim interface and gave your feedback.
Infracost diff
using --compare-to
The diff
command --compare-to
flag enables you to compare different Infracost runs (using their JSON output), for example:
git clone https://github.com/infracost/example-terraform.git
cd example-terraform/sample1
# Generate JSON file from an Infracost run
infracost breakdown --path . --terraform-parse-hcl --format json --out-file infracost-run.json
# Update the Terraform code by changing the instance type to m5.8xlarge
vim main.tf
# Show cost estimate diff
infracost diff --path . --terraform-parse-hcl --compare-to infracost-run.json
Read more about this behaviour in our docs
Relevant changes
New resources
- Add Azure Sentinel support - by @acald-creator in #1527
Fixes
New Contributors
- @acald-creator made their first contribution in #1527 🎉 🥳
Announcements
The HCL parsing method will become the default behavior of the infracost breakdown
and infracost diff
commands in v0.10.0 of the CLI. We haven't finalized the interface yet, but it's likely that the --terraform-parse-hcl
flag will be removed so there will be two main ways to use Infracost:
- Option 1: Terraform directory (good for source control systems such as GitHub)
- Option 2: Terraform plan JSON (good for deployment systems such as Terraform Cloud)
Docs
Full Changelog: v0.9.23...v0.9.24