GoogleCloudPlatform / notebooks-blueprint-security

Opinionated setup for securely using AI Platform Notebooks.
https://registry.terraform.io/modules/GoogleCloudPlatform/notebooks-blueprint-security/google
Apache License 2.0
42 stars 15 forks source link

Error executing terraform validator #64

Closed amandakarina closed 1 year ago

amandakarina commented 3 years ago

Hey folks,

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

p.s.: I removed my full path in the error

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days