Skip to content

CICD-456 · Infrastructure cost estimation ​

Encyclopedia · FinOps and resource optimization · All snippets

Previous · CICD-455 · Next · CICD-457

1. Where it fits ​

  • Placement CI report step.
  • Prerequisites authorized read reports, explicit pricing period and reviewed ownership for cleanup.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
terraform show -json tfplan > planned.json
infracost breakdown --path planned.json --format json --out-file estimate.json

3. How it works ​

The command renders the chosen plan into human-readable or structured evidence. Restrict access to plan output.

4. Verify the result ​

Treat the plan as sensitive and only send approved inputs to pricing systems. Record supported resource coverage.

Validation syntax-validated (Bash parse). Status definitions.