Releases: infracost/infracost
v0.9.24
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
v0.9.23
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:
infracost breakdown --terraform-parse-hcl
infracost diff --terraform-parse-hcl --compare-to infracost-run.json
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
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
Docs
Full Changelog: v0.9.21...v0.9.22
v0.9.21
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 inbreakdown
anddiff
output. When set it will list unsupported and free resources - by @vdmgolub in #1477
AWS
- Network Firewall support - by @ouranos in #1469
- Glue resources support - by @hugorut in #1489
- Additional free resources - by @syphernl in #1481
Azure
- SQL Managed Instance support - by @matthieupetite in #1461
- Mark Storage Container resource as free - by @vdmgolub in #1499
Fixes
- Since the release of HCL parsing feature we keep working to improve its results and resolve the found and reported issues:
- 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
- @matthieupetite made their first contribution in #1461
- @ouranos made their first contribution in #1469
Full Changelog: v0.9.20...v0.9.21
v0.9.20
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
- 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
- Elastic beanstalk environment support - by @lukeadams84 in #1411
- Marks a number of app_autoscaling as free resources - by @tim775 in #1426
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:
- 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
New Contributors
- @lukeadams84 made their first contribution in #1411
- @fedeci made their first contribution in #1457
Full Changelog: v0.9.19...v0.9.20
v0.9.19
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
orchoco 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
- Log out-file message if log-level is set by @aliscott in #1383
- Use simple prompts for register commands on Windows by @vdmgolub in #1388
- Update filter for google_container_node_pool resource by @vdmgolub in #1394
- Remove emoji from basic Markdown template by @lazzurs in #1402
- Change styling of output URLs by @vdmgolub in #1404
Docs
Fixes
- Add run time values into singular attribute by @hugorut in #1412
- Validate PR/MR number in comment commands by @vdmgolub in #1391
New Contributors
Full Changelog: v0.9.18...v0.9.19
v0.9.18
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)
- see
- 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
- Migration of old resources to new internal structure @sinabakh, @aliscott and @vdmgolub in #1310, #1338, #1313, #1309
- Add support for terraform-provider-aws v4 by @vdmgolub in #1370
Docs
- Generate share links for comment command by @vdmgolub in #1343
- Change register prompts by @hugorut in #1345
Fixes
- Do no show CI/CD info message for output/comment cmds in CI by @vdmgolub in #1337
- Handle missing
sku.size
forazurerm_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
- @wahlfeld10x made their first contribution in #1269
Full Changelog: v0.9.17...v0.9.18
v0.9.17
What's Changed
New Features/Resources
- Add
infracost comment
cmd by @tim775 in #1297. Runinfracost 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!
- see
Enhancements
- Migration of old resources to new internal structure by @sinabakh & @aliscott in #1263, #1304, #1227, #1268, #1267, #1270, #1301, #1302, #1291, #1290, #1277, #1284, #1307, #1308, #1314
Docs
- Update add resources guide to reference new regions by @hugorut in #1235
- Add contributors image by @aliscott in #1306
- Update fatal error messaging in cli by @hugorut in #1287
- Update error messages to link to troubleshooting page by @aliscott in #1295
- Simplify help texts by @alikhajeh1 in #1315
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
What's Changed
New Features/Resources
- Add AWS CloudTrail resource by @hugorut in #1209
- Add support for Azure deprecated
sql_database
by @hugorut in #1215 - Add Google Artifact Registry Repository by @hugorut in #1203
- Add AWS
ap-southeast-3
region to shared usage by @hugorut in #1236 - Add share links by @vdmgolub in #1212
- Add CI Dockerfile by @aliscott in #1210
- Add JSON schema for output JSON by @tim775 in #1217
Enhancements
Docs
- Add region usage appendix by @hugorut in #1207
- infracost/docs#136
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
What's Changed
New Features/Resources
- Add support for VirtualWAN by @hugorut in #1189
- Parallelize multi-project runs by @aliscott in #1193
- Add free resource azurerm_storage_account_network_rules by @alikhajeh1 in #1156
- Use
INFRACOST_TERRAGRUNT_FLAGS
during init and info by @tim775 in #1172 - Add configure options for tls_ca_cert_file and tls_insecure_skip_verify by @aliscott in #1187
- Add GitLab comment output format by @aliscott in #1198
Enhancements
- Improve error reporting for api key problems by @tim775 in #1158
- Handle tgenv by logging to stdout when running terragrunt by @tim775 in #1190
- Bump dependencies in #1160, #1161, #1162, #1163, #1165, #1168, ttps://github.com//pull/1164, #1166
Docs
- Use new GitHub Actions screenshot by @alikhajeh1 in #1157
- Update contributing guides by @vdmgolub in #1184
- infracost/docs#124
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