terraform-example-foundation
terraform-example-foundation copied to clipboard
Error: validating: FCV: initializing gcv validator: failed to read files in /workspace/policy-library/policies: error visiting path /workspace/policy-library/policies: lstat /workspace/policy-library/policies: no such file or directory
Terraform validator error in module 5-app-infra
Already has the content uploaded in source repositories for the gcp-policies and bu1-sample-base in the correct project of business unit, when launch git push origin plan the trigger of cloud build throws this error in the part of terraform validator, it seems to be in the step for clone /workspace/policy-library, I made also ls -la in the tfwrapper.sh but nothing shows in cloud build logs
2022-07-15T12:51:28.491065429ZStep #1 - "tf plan validate all":
2022-07-15T12:51:28.492416515ZStep #1 - "tf plan validate all": Project [prj-bu1-c-infra-pipeline-f676] repository [gcp-policies] was cloned to [/workspace/policy-library].
2022-07-15T12:51:28.816233815ZStep #1 - "tf plan validate all": ERROR: logging before flag.Parse: I0715 12:51:28.815905 281 convert.go:213] unsupported resource: google_service_account
2022-07-15T12:51:28.816316825ZStep #1 - "tf plan validate all": ERROR: logging before flag.Parse: I0715 12:51:28.816174 281 convert.go:207] unknown resource: google_compute_zones
2022-07-15T12:51:28.816552523ZStep #1 - "tf plan validate all": ERROR: logging before flag.Parse: I0715 12:51:28.816299 281 convert.go:213] unsupported resource: google_compute_instance_from_template
2022-07-15T12:51:28.816687798ZStep #1 - "tf plan validate all": ERROR: logging before flag.Parse: I0715 12:51:28.816559 281 convert.go:213] unsupported resource: google_compute_instance_template
2022-07-15T12:51:28.816949025ZStep #1 - "tf plan validate all": Error: validating: FCV: initializing gcv validator: failed to read files in /workspace/policy-library/policies: error visiting path /workspace/policy-library/policies: lstat /workspace/policy-library/policies: no such file or directory
2022-07-15T12:51:28.817536527ZStep #1 - "tf plan validate all": Usage:
2022-07-15T12:51:28.817544050ZStep #1 - "tf plan validate all": terraform-validator validate