-
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
[Bug]: challenge not supported action in aws_wafv2_rule_group, though docs indicate it is #29229
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
To follow up on this report i have just realised this is an inconsistency. aws_wafv2_web_acl resource rules support actions allow, block, count, captcha, challenge aws_wafv2_rule_group resource rules support allow, block, count, captcha but not challenge AWS WAF Rule groups do however support the challenge response as it is possible to set this in the AWS console. |
Just a heads up for those following this issue: I've made a PR to add support for challenge action to the rule groups Feel free to add thumbs-up to it to try to get it released soon. |
Hey @justinretzolk, is there anything that can be done to get my PR look at for the next release please? |
This functionality has been released in v4.64.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Terraform Core Version
v1.3.7
AWS Provider Version
v4.53.0
Affected Resource(s)
aws_wafv2_rule_group
Expected Behavior
The action block in a rule should support the challenge action as documented in the docs https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/wafv2_web_acl.html#challenge
Actual Behavior
Error reported that challenge block not expected
Error: Unsupported block type
│
│ on test.tf line 279, in resource "aws_wafv2_rule_group" "test":
│ 279: challenge {}
│
│ Blocks of type "challenge" are not expected here.
Changing the action type to captcha does work, and allows terraform to create the rule.
Creating the rule with action type captcha i can then change the action in the AWS console to challenge and the rule works as expected.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Example rule
Steps to Reproduce
Attempt to create a rule group with a rule that uses the challenge action.
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: