This repository has been archived by the owner on May 15, 2023. It is now read-only.
Rego policy is failing to restrict optional string parameter of terraform #1555
Labels
bug
Something isn't working
Statement: Rego policy to enable Verbose Logging in Cloud Armor
Parameter: log_level
Rego Policy:
This policy is raising the violation if we use log_level = "NORMAL" as expected.
If we omit the log_level parameter in the Terraform script, no violation will be raised by this policy. It is bypassing our validation rule.
I have tried with not keyword, but it is not working.
With null also not working
resource.change.after.advanced_options_config[_].log_level == null
Any solution to check missing terraform parameter?
The text was updated successfully, but these errors were encountered: