You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
│ Error: Insufficient visibility_config blocks
│
│ on .terraform/modules/terraform-aws-wafv2.wafv2/rules.tf line 412, in resource "aws_wafv2_web_acl" "default":
│ 412: content {
│
│ At least 1 "visibility_config" blocks are required.
Either require the rule visibility_config to be required in variables or have the module populate it automatically based on the global visibility_config settings and provide a sensible metric name
Steps to Reproduce
Config any rules without providing a visibility_config block inside the rule.
Screenshots
No response
Environment
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Describe the Bug
When running this module I am getting this error:
Many of the statement rules variables mark the visibility_config block as optional: https://github.com/cloudposse/terraform-aws-waf/blob/main/variables.tf#L165
However the wafv2_web_acl requires it in the rule block: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/wafv2_web_acl#rule-block
Expected Behavior
Either require the rule visibility_config to be required in variables or have the module populate it automatically based on the global visibility_config settings and provide a sensible metric name
Steps to Reproduce
Config any rules without providing a visibility_config block inside the rule.
Screenshots
No response
Environment
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: