GoogleCloudPlatform / terraform-example-foundation-app

https://registry.terraform.io/modules/GoogleCloudPlatform/terraform-example-foundation-app/google
Apache License 2.0
33 stars 36 forks source link

terraform-validation fails in 5-infrastructure + violations #38

Closed daniel-cit closed 3 years ago

daniel-cit commented 3 years ago

Expected Behavior

Cloud build execution of step 5-infrastructure has no terraform-validator violations

Actual Behavior

Cloud build execution of step 5-infrastructure fails by cloning a empty gcp-policies repo

Step #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

If we push the policies to the repo following the Foundation 5-app-infra README instructions, we got these terraform-validator violations:

Steps to Reproduce the Problem

  1. Follow the instruction in https://github.com/GoogleCloudPlatform/terraform-example-foundation-app/blob/main/5-infrastructure/README.md

Specifications

daniel-cit commented 3 years ago

GCPGKERestrictPodTrafficConstraintV1.gke_restrict_pod_traffic violations needs additional configuration for: