Skip to content

Releases: infracost/infracost

v0.9.24

04 May 14:35
Compare
Choose a tag to compare

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

  • Update --compare-to flag to only be used by diff - by @hugorut in #1620

New resources

Fixes

  • Remove failing spinner if workspace does not use remote execution - by @hugorut in #1622

New Contributors

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

infracost/docs#215

Full Changelog: v0.9.23...v0.9.24

v0.9.23

29 Apr 17:02
Compare
Choose a tag to compare

0.9.23 (April 29 2022)

Infracost v0.9.23 contains support for parsing HCL with Terraform Cloud remote execution mode, TF_VAR_ env variables and Terragrunt. There's also a new --compare-to flag that enables you to compare different Infracost runs 🚀
Thank you to our amazing community members who helped us diagnose, triage and fix bugs, you rock!


Faster and simpler way to run Infracost

The infracost breakdown --terraform-parse-hcl experimental flag received very positive feedback, so we also added it to infracost diff! We also added a new --compare-to flag that 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

Checkout the docs for:

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)

Relevant changes:

  • feat: Add support for HCL parsing of Terragrunt projects by @tim775 in #1571
  • feat: Add support for TF_VAR_ environment variables when parsing HCL by @tim775 in #1586
  • feat: Load TFC remote execution variables for HCL parsing by @vdmgolub in #1589
  • feat: add compare-to flag to compare diffs across runs by @hugorut in #1570

New resources

  • feat(aws): Add launch template support for Instance resource by @vdmgolub in #1564
  • feat(google): Add usage parameter for Compute Address/Global Address by @vdmgolub in #1573

Fixes

  • fix(hcl): evalute modules in order of reference by @hugorut in #1568
  • fix: Match on the whole markdown tag when finding existing comments by @tim775 in #1581
  • fix: Lookup region from resource_group_name by @tim775 in #1582
  • fix: Don't error when using terragrunt dependencies by @tim775 in #1591
  • fix(azure): fix public ip standard pricing by @hugorut in #1592
  • fix: fix polluting the OS env variables by @aliscott in #1587

Other improvements

  • ci(fig): update autocomplete spec automatically by @fedeci in #1565
  • refactor(azure): resource migrations batch 1 by @sinabakh in #1540
  • chore(aws): Load EBS block devices from LT for Instance resource by @vdmgolub in #1580

Docs

https://github.com/infracost/docs/pull/203/files

Full Changelog: v0.9.22...v0.9.23

v0.9.22

13 Apr 10:58
676e388
Compare
Choose a tag to compare

0.9.22 (April 13 2022)

Infracost v0.9.22 contains several major fixes for HCL parsing as well as support for some heavily requested new resources. Thank you to our amazing community members who helped us diagnose, triage and fix bugs, you rock ❤️!


New Features

AWS

Azure


Fixes

  • We've continued to improve the accuracy of HCL parsing. Thanks again to all the community members who reported issues to us.
    • Full support for provider aliases - by @hugorut in #1532
    • Fixed various issues with resource count attributes - by @hugorut in #1548, #1543, #1542
    • Solved google_container_cluster missing references with existing Terraform state - by @hugorut in #1508
    • Set default billing value for aws_dynamodb_table - by @hugorut in #1521
    • Set default os disk size for azurerm_kubernetes_cluster_node_pool - by @hugorut in #1531
    • Use aws_ecs_cluster launch type from capacity providers if available - by @tim775 in #1533
    • Fixed aws_kinesis_firehose_delivery_stream subnet_ids attribute resolving as empty before apply - by @aliscott in #1544
  • Solved incorrect pricing for AWS Step Functions - by @tim775 in #1509

Other improvements

  • Migration of further resources to new internal structure - by @sinabakh in #1470

Docs

Full Changelog: v0.9.21...v0.9.22

v0.9.21

30 Mar 10:49
df27a78
Compare
Choose a tag to compare

0.9.21 (March 30 2022)

Infracost v0.9.21 contains several new features, general codebase improvements and some bug fixes. Thank you, our awesome community, for making this release possible!


New Features

  • We've disabled spinners by default for CI environment, so you are no longer spammed by hundreds of useless log lines! Instead we default the output to use the 'info' log level. You can modify it by setting this environment variable - by @vdmgolub in #1474
  • We've added a new terraform-init-flags flag to fine tune Terraform usage with Infracost. Here's an example how to use it - by @hugorut in #1471
  • We've clarified usage of --show-skipped flag in breakdown and diff output. When set it will list unsupported and free resources - by @vdmgolub in #1477

AWS

Google

  • VPC Service Network Connections support - by @tim775 in #1492

Azure


Fixes

  • Since the release of HCL parsing feature we keep working to improve its results and resolve the found and reported issues:
    • HCL panic errors - by @hugorut in #1475
    • Get the correct instance type for EKS node groups - by @aliscott in #1494
    • Use backwards referencess to determine if EIP has been allocated - by @hugorut in #1500
    • VPC endpoint's subnet_ids attribute empty without apply state - by @hugorut in #1504
  • Honor cache enabled flag for API Gateway - by @tim775 in #1506

Other improvements

  • Infracost is built with Go v1.18 now - by @PatMyron in #1466
  • We've added CodeQL vulnerability scanning for Infracost repositories - by @hugorut in #1479
  • We are now showing the terraform-parse-hcl flag in the CLI's help output now, so more users can discover and try it out - by @hugorut in #1473

Docs

New Contributors

Full Changelog: v0.9.20...v0.9.21

v0.9.20

16 Mar 13:07
9fc54f4
Compare
Choose a tag to compare

0.9.20 (March 16 2022)

If you are using any of the CI bash scripts, please upgrade as soon as possible

These scripts have been replaced by dedicated integrations with most CI/CD platforms, which we recommend you upgrading to:

Please visit Infracost.io/cicd for other CI/CD integrations and more information.

These scripts will be removed September 2022. If you are pulling them directly from this repository and cannot upgrade before then, we recommend you keeping a copy in your own repositories.


Infracost v0.9.20 contains some exciting new features, general codebase improvements and some bug fixes. Thanks as always to our amazing community who made this release possible.

New Features

Github failing policy

  • Cost policy checks are now reported directly inside pull request comments. The native integration with Open Policy Agent simplifies writing policies that are checked before resources are launched. Find out more about this exciting feature on our blog - by @hugorut in #1289
  • Infracost CLI now has fig autocompletion support - by @fedeci in #1457

AWS

Google

  • GKE Autopilot support for container cluster resource - by @vdmgolub in #1458

Fixes

  • As part of the internal security drive, we made changes to the release workflow to use an internal script - by @hugorut in #1444
  • A massive thanks to all the community who helped report issues with our drive to make parsing HCL a reality. Thanks to you, we resolved a number of issues:
    • Google SQL Database Instance to use default values - by @aliscott in #1455
    • google_container_cluster duplicating node pools when applied - by @aliscott in #1463
    • Set engine for AWS DB Instance replica - by @vdmgolub in #1438
    • Set default capacity for Azure App Service Plan - by @vdmgolub in #1435
  • Resolved issue where slack message above a project count > 3 were causing errors with the API - @aliscott in #1462
  • Infracost comment has better error reporting if communication issues arise between the GitHub API and Infracost - by @vdmgolub in #1443
  • Internal changes to the Infracost CLI to support our new resource structure - by @sinabakh in #1376

Docs

infracost/docs#177

New Contributors

Full Changelog: v0.9.19...v0.9.20

v0.9.19

01 Mar 15:53
Compare
Choose a tag to compare

What's Changed

New Features/resources

  • Add HCL-only provider by @hugorut in #1303,
    Infracost can parse the Terraform HCL code directly without having to generate a plan JSON. This is useful if you want to run Infracost without having access to the Terraform binary or any cloud credentials that Terraform requires. It is also faster than generating a plan JSON. see usage docs

  • Add zip archives to release by @hugorut in #1389, see the release page for the files

  • On release trigger chocolatey-packages workflow by @hugorut in #1398, Windows users can now just run choco install infracost or choco upgrade infracost

New AWS resources:

  • Add aws_appautoscaling_target resource by @tim775 in #1401
  • Add application autoscaling support for AWS MSK clusters by @tim775 in #1408
  • Add application autoscaling support for ElastiCache replication groups by @tim775 in #1409

Enhancements

Docs

Fixes

New Contributors

Full Changelog: v0.9.18...v0.9.19

v0.9.18

16 Feb 12:35
Compare
Choose a tag to compare

What's Changed

New Features/resources

  • Add Linux ARM 64 releases by @aliscott in #1318
  • Add SHA checksum to binaries by @hugorut in #1351
  • Add commenting for Bitbucket by @vdmgolub in #1363
    • see infracost comment bitbucket --help for an example of how to post cost estimates to Bitbucket Cloud/Server, or see the docs here
    • see infracost output to generate the comment markdown (so you can post it manually)
  • Add support for Bitbucket Server to diff script by @wahlfeld10x in #1269
  • Add support for Amazon RDS Performance Insights charges. by @tim775 in #1369
  • Add support for additional AWS burstable instance type by @tim775 in #1365
  • Add free resources for AWS EFS and Lambda by @tim775 in #1350
  • Add support for Premium Azure Event Hubs by @tim775 in #1355
  • Add support for Azure log analytics workspace by @hugorut in #1367

Enhancements

Docs

Fixes

  • Do no show CI/CD info message for output/comment cmds in CI by @vdmgolub in #1337
  • Handle missing sku.size for azurerm_app_service_plan by @tim775 in #1366
  • Fix sync-usage-file failing on S3 if some permissions aren't set by @aliscott in #1368
  • Fix uncaught panics from parallel processing by @hugorut in #1371
  • Update AWS data transfer filters to match pricing data changes. by @tim775 in #1352
  • Solve issue where combined output has double diff monthly total by @hugorut in #1347

New Contributors

Full Changelog: v0.9.17...v0.9.18

v0.9.17

31 Jan 11:07
b987f6d
Compare
Choose a tag to compare

What's Changed

New Features/Resources

  • Add infracost comment cmd by @tim775 in #1297. Run infracost comment --help for examples (more docs coming soon!)
  • Add commenting for Azure Repos by @vdmgolub in #1305
    • see infracost comment azure-repos --help for an example of how to post cost estimates to Azure Repos
    • see infracost output to generate the comment markdown (so you can post it manually)
    • you can use our native Azure DevOps extension too!

Enhancements

Docs

Fixes

  • Obey the http(s)_proxy set in the environment by @aliscott in #1285
  • Solve range panic with terragrunt due to mismatch in project ctx by @hugorut in #1286

Thanks

Big thanks to @sinabakh for his time and effort in helping migrate resources to the new structure.

Full Changelog: v0.9.16...v0.9.17

v0.9.16

04 Jan 09:45
413f5d8
Compare
Choose a tag to compare

What's Changed

New Features/Resources

Enhancements

Docs

Fixes

  • Windows TLS certs by @tim775 in #1239
  • Solve cluster_mode inconsistency with Terraform state by @hugorut in #1224
  • Fix race conditions by @aliscott in #1206
  • Make sure terraform/grunt version is prefixed with v by @tim775 in #1261
  • Detect more error messages for requiring terraform init by @aliscott in #1237
  • Ensure multi projects have consistent order in the Infracost order by @aliscott in #1220
  • Indent the "Calculating monthly cost estimate" spinner by @tim775 in #1240

Full Changelog: v0.9.15...v0.9.16

v0.9.15

14 Dec 09:16
Compare
Choose a tag to compare

What's Changed

New Features/Resources

Enhancements

Docs

Fixes

  • Update pricing for AWS/Azure resources by @vdmgolub in #1171
  • Fix diff showing all resources when -target is used with Terrarform. by @aliscott in #1169
  • Fix ASG module when creating launch configuration/template by @aliscott in #1185
  • Fix pricing in golden file tests by @vdmgolub in #1186
  • Fix aws_transfer_server default protocol by @vdmgolub in #1191
  • Update usage type filter for AWS DynamoDB Table resource by @vdmgolub in #1196

Full Changelog: v0.9.14...v0.9.15