-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Error on Apply when creating a WAF rule group and attaching to WebACL #4078
Comments
Should also mention, in the case of |
This is because you are mixing aws_waf_web_acl with regional waf resources. You should use aws_wafregional_web_acl instead of aws_waf_web_acl |
I was able to replicate the error even after using aws_wafregional_* for the rule, rule group and webacl. I face the below error as explained above during Tf apply. Tf plan just works fine!
rule1 is clearly defined as aws_wafregional_rule rule. |
Same issue here. I'm using only the aws_wafregional_* variants of rules, match sets, ACLs and associations. Applying multiple times does not help (at least on my tests). I'm using the following versions: Terraform v0.11.7
|
Same here, using only aws_wafregional_*, not mixing. Versions used: |
This should be fixed with #5053 which was just merged into master and will release with version 1.27.0 of the AWS provider, likely middle of this week. 👍 # Implementation is similar for aws_wafregional_web_acl resource
resource "aws_waf_web_acl" "example" {
# ... other configuration ...
rules {
# ... other configuration ...
override_action {
type = "NONE"
}
type = "GROUP"
rule_id = "${aws_waf_rule_group.example.id}"
}
} |
This has been released in version 1.27.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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! |
Terraform Version
Terraform v0.11.5
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/erikpaasonen/035ca50b9ba05f74cc814a28884b608d
Panic Output
N/A
Expected Behavior
Terraform should attach the Rule Group object to the WebACL object in both Global and Regional contexts.
Actual Behavior
Error message:
Checking the WebACL in the AWS Console shows the rule set is empty, i.e. the rule group was not actually attached to the WebACL.
Steps to Reproduce
terraform apply
with the above codeImportant Factoids
Support for rule groups was very recently added to the AWS Provider. Fairly certain that this is simply an oversight during initial implementation.
References
The text was updated successfully, but these errors were encountered: