Home / Companies / Infracost / Blog / Post Details
Content Deep Dive

Cost your Terraform plan JSON directly

Blog post from Infracost

Post Details
Company
Date Published
Author
-
Word Count
394
Company Posts That Month
1
Language
English
Hacker News Points
-
Summary

Infracost CLI version 2.4.2 introduces a feature that allows users to cost their Terraform plans directly from the plan JSON output generated by the `terraform show -json` command. This integration enables users to receive a detailed cost breakdown of their fully-resolved Terraform resources without additional steps or modifications to existing pipelines. The process involves pointing Infracost at the plan JSON file, which it reads and evaluates based on resolved resources, applying any relevant FinOps and tagging policies. This seamless integration is beneficial for teams already utilizing Terraform plans in their workflows, especially those whose cost estimations depend on dynamic values resolved at plan time. With this setup, developers can view accurate cost estimates directly on pull requests, reflecting real-time figures without needing additional plan steps. This feature is compatible with various platforms, including Bitbucket, HCP Terraform, and Terraform Enterprise, and is designed to integrate easily into existing continuous integration processes.

Trends Found in this Post

No tracked trend matches for this post yet.