-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[aws_wafv2_web_acl] Error creating WAFv2 WebACL: WAFInvalidParameterException: Error reason: A reference in your rule statement is not valid., field: RULE, parameter: Statement #14120
Comments
I'm having the same issue doing a managed_rule_group_statement name = "cf-rule"
scope = "CLOUDFRONT"
default_action {
allow {}
}
rule {
name = "common"
priority = 1
action {
block {}
}
statement {
managed_rule_group_statement {
name = "AWSManagedRulesCommonRuleSet"
vendor_name = "AWS"
}
}
visibility_config {
cloudwatch_metrics_enabled = true
metric_name = "waf-blocks"
sampled_requests_enabled = false
}
}
visibility_config {
cloudwatch_metrics_enabled = true
metric_name = "waf-hits"
sampled_requests_enabled = false
}
} And getting the same error:
|
Hi @iramello, thank you for reporting this issue and apologies the error returned from the AWS API isn't very clear about what part of the rule needs adjustment. I believe the error documented in the description stems from the rule's @evanspaeder, in your case the Hope this helps! If any further questions arise please let me know! |
Related to #14094 |
@anGie44 Thanks A LOT for your reply, changing |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Terraform should create wafv2 web acl
Actual Behavior
Terraform throws an error when trying to create it using the code block as above:
Steps to Reproduce
terraform apply
using the HCL aboveThe text was updated successfully, but these errors were encountered: