YAML for Terraform Cost Estimation
Estimate the monthly cost of a plan file produced by a preceding Terraform Plan action with Infracost, render it per resource and export it as BUDDY_ACTION_TF_COST_* variables.
YAML examples for Terraform Cost Estimation
Terraform Cost Estimation
yaml
- action: "Estimate cost"
type: "TERRAFORM_COST_ESTIMATION"
tool: "OPENTOFU"
version: "1.9.0"
cost_estimation:
integration: "infracost"
Terraform Cost Estimation of an explicit plan file with a usage file
yaml
- action: "Estimate cost"
type: "TERRAFORM_COST_ESTIMATION"
tool: "OPENTOFU"
version: "1.9.0"
working_directory: "./infrastructure/prod"
plan_file_path: "$BUDDY_ACTION_TF_PLAN_OUTPUT_FILE"
cost_estimation:
integration: "infracost"
usage_file: "infracost-usage.yml"