-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
WAF aws_waf_rule resource does not allow underscores in metric_name #12080
Comments
+1. This is very useful, can we get someone to look over this? |
The The applicable API references are:
I think that the AWS Console is defaulting to the new WAF v2 API:
#11176 tracks implementing the WAFv2 Web ACL resource. |
@ewbankkit thanks for the feedback but it doesn't seem to match what I see:
|
@ewbankkit I opened a PR that fixes this the way you described it above. Could you please take a look and let me know if there's any other work on this? Cheers |
@scalp42 It's all rather inconsistent right now.
|
@scalp42 If I try creating an
You should be able to click on Switch to AWS WAF Classic in the AWS WAF section of the WAF & Shield console to verify that in classic mode underscores aren't allowed in metrics names. |
Gotcha, this is pretty confusing. Thanks for taking the time @ewbankkit we'll focus on #11176 then. |
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! |
Assuming the following:
The valid regex is:
^[\w#:\.\-/]+$
Tested by hand and we can pass underscrores in the rule (gets passed to metric_name):
I also tested with the JSON editor:
Related to #8197.
The text was updated successfully, but these errors were encountered: