GoogleCloudPlatform / terraform-validator

Terraform Validator is not an officially supported Google product; it is a library for conversion of Terraform plan data to CAI Assets. If you have been using terraform-validator directly in the past, we recommend migrating to `gcloud beta terraform vet`.
https://cloud.google.com/docs/terraform/policy-validation
Apache License 2.0
438 stars 93 forks source link

Error ``` invalid nested repetition operator: `**```` #146

Closed Parasdogra closed 4 years ago

Parasdogra commented 4 years ago

Getting below error when trying to trying to validate. Any insights? Error: validating: FCV: auditing: core.dependencies.audit:25: eval_builtin_error: re_match: error parsing regexp: invalid nested repetition operator: **

morgante commented 4 years ago

This looks like an error in your policy library. Can you try using the same library with CFT Scorecard?

Parasdogra commented 4 years ago

It works for CFT scorecard. However using terraform validator, I get the same error.

morgante commented 4 years ago

Can you share which policies you're using?

Parasdogra commented 4 years ago

yes sure. I am using these sample policies. https://github.com/forseti-security/policy-library/tree/master/samples

Parasdogra commented 4 years ago

Any updates?