When using a regex string "(*UTF8)^{1,100}$" to check for string of 100 charcters in utf-8 format, the waf rule statement should build and deploy successfully.
Actual Behavior
An error message is thrown failing to build and deploy to aws waf.
Relevant Error/Panic Output Snippet
rule.1.statement.0.and_statement.0.statement.1.regex_match_statement.0.regex_string": error parsing regexp: missing argument to repetition operator: `*`
Create a regex rule statement '(*UTF8)^{1,100}$'
Use cdktf to deploy to aws
Debug Output
rule.1.statement.0.and_statement.0.statement.1.regex_match_statement.0.regex_string": error parsing regexp: missing argument to repetition operator: *
Panic Output
No response
Important Factoids
This regex string (*UTF8)^{1,100}$ works in the AWS WAF web console.
Looks like terraform is trying to validate the regex statement against a different regex engine than aws waf v2. Is it possible to have an option to remove the validation? Or to change to the same regex engine as aws?
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.5.7
AWS Provider Version
5.20.1
Affected Resource(s)
aws_wafv2_web_acl regex_match_statement
Expected Behavior
When using a regex string "(*UTF8)^{1,100}$" to check for string of 100 charcters in utf-8 format, the waf rule statement should build and deploy successfully.
Actual Behavior
An error message is thrown failing to build and deploy to aws waf.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Create a regex rule statement '(*UTF8)^{1,100}$' Use cdktf to deploy to aws
Debug Output
rule.1.statement.0.and_statement.0.statement.1.regex_match_statement.0.regex_string": error parsing regexp: missing argument to repetition operator:
*
Panic Output
No response
Important Factoids
This regex string (*UTF8)^{1,100}$ works in the AWS WAF web console.
Looks like terraform is trying to validate the regex statement against a different regex engine than aws waf v2. Is it possible to have an option to remove the validation? Or to change to the same regex engine as aws?
References
No response
Would you like to implement a fix?
No