forked from github/pre-commit-opentofu
docs: Updated docs for infracost_breakdown to match Infracost 0.10 (#392)
This commit is contained in:
parent
a7b90d085c
commit
4619ee245c
1 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue