diff --git a/docs/7.Scan Examples/Terraform Plan Scanning.md b/docs/7.Scan Examples/Terraform Plan Scanning.md index cf255095134..5b11a7bcb5f 100644 --- a/docs/7.Scan Examples/Terraform Plan Scanning.md +++ b/docs/7.Scan Examples/Terraform Plan Scanning.md @@ -15,19 +15,11 @@ Checkov supports the evaluation of policies on resources declared in `.tf` files ```json terraform init terraform plan --out tfplan.binary -terraform show -json tfplan.binary > tfplan.json +terraform show -json tfplan.binary | jq > tfplan.json checkov -f tfplan.json ``` -Note: The Terraform show output file `tf.json` will be a single line. For that reason Checkov will report all findings as line number 0. -If you have installed jq, you can convert a JSON file into multiple lines making it easier to read the scan result. - -```json -terraform show -json tfplan.binary | jq '.' > tfplan.json - -checkov -f tfplan.json -``` The output would look like: ```