Skip to content

Commit 1b9329a

Browse files
chore: fix command to execute terraform-validator (#502)
* Fix command to execute terraform-validator * Added how to add binary to PATH * Update README
1 parent a18b203 commit 1b9329a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

0-bootstrap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ your current Jenkins manager (master) environment.
113113
```
114114
1. Run `terraform init`.
115115
1. Run `terraform plan` and review the output.
116-
1. To run terraform-validator steps please follow the [instructions](https://github.com/forseti-security/policy-library/blob/master/docs/user_guide.md#install-terraform-validator) in the **Install Terraform Validator** section and install version `2021-03-22`. You will also need to rename the binary from `terraform-validator-<your-platform>` to `terraform-validator`.
116+
1. To run terraform-validator steps please follow the [instructions](https://github.com/forseti-security/policy-library/blob/master/docs/user_guide.md#install-terraform-validator) in the **Install Terraform Validator** section and install version `2021-03-22`. You will also need to rename the binary from `terraform-validator-<your-platform>` to `terraform-validator`and the terraform-validator binary must be in your PATH.
117117
1. Run `terraform plan -input=false -out bootstrap.tfplan`
118118
1. Run `terraform show -json bootstrap.tfplan > bootstrap.json`
119119
1. Run `terraform-validator validate bootstrap.json --policy-path="../policy-library" --project <A-VALID-PROJECT-ID>` and check for violations (`<A-VALID-PROJECT-ID>` must be an existing project you have access to, this is necessary because Terraform-validator needs to link resources to a valid Google Cloud Platform project).

0 commit comments

Comments
 (0)