Skip to content

Commit

Permalink
docs: Updated docs for infracost_breakdown to match Infracost 0.10 (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbabenko authored May 27, 2022
1 parent a7b90d0 commit 4619ee2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,14 @@ Unlike most other hooks, this hook triggers once if there are any changed files
<!-- markdownlint-disable-next-line no-inline-html -->
</details>

2. Note that there can be a maximum of one flag inside `--terraform-plan-flags`. Split into several `--args` to avoid using spaces in `--terraform-plan-flags`. Example of right usage:
2. Note that spaces are not allowed in `--args`, so you need to split it, like this:

```yaml
- id: infracost_breakdown
args:
- --args=--path=./env/dev
- --args=--terraform-plan-flags="-var-file=terraform.tfvars"
- --args=--terraform-plan-flags="-var-file=../terraform.tfvars"
- --args=--terraform-var-file="terraform.tfvars"
- --args=--terraform-var-file="../terraform.tfvars"
```

3. (Optionally) Define `cost constrains` the hook should evaluate successfully in order to pass:
Expand Down

0 comments on commit 4619ee2

Please sign in to comment.