when executing terraform validator using the folder policies I got this error:
terraform-validator validate "simple_example.json" --policy-path="${policy_file_path}" --project="${project_id}"
Error: validating: FCV: initializing gcv validator: failed to read files from /home/.../lib: failed to read files in /home/.../lib: error visiting path /home/.../lib: lstat /home/.../lib: no such file or directory
Usage:
terraform-validator validate <tfplan> [flags]
Flags:
--ancestry string Override the ancestry location of the project when validating resources
-h, --help help for validate
--offline Do not connect to GCP API
--output-json Print violations as JSON
--policy-path string Path to directory containing validation policies
--project string Provider project override (override the default project configuration assigned to the google terraform provider when validating resources)
Global Flags:
--verbose Log output to stderr
Hey folks,
when executing terraform validator using the folder
policies
I got this error:p.s.: I removed my full path in the error