Closed miguelconde91 closed 1 year ago
Hi @miguelconde91, thanks for the report.
The documentation you linked is for the latest version of the AWS provider, while I can see you are actually using v4.22.0.
If you look at the documentation for v4.22.0 specifically, you can see the regex_match_statement
statement isn't yet supported: https://registry.terraform.io/providers/hashicorp/aws/4.22.0/docs/resources/wafv2_web_acl#statement
This should start working if you update your AWS provider version.
Fixed updating to aws provider v4.48.0
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
Terraform Configuration Files
Debug Output
Expected Behavior
An aws wafv2 web acl is created
Actual Behavior
Fail the terraform plan command, shows like the block
regex_match_statement
is not supported, however in the documentation https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/wafv2_web_acl#statement the blockregex_match_statement
is listed like supported inside statementSteps to Reproduce
terraform plan
Additional Context
If I replace the content for example with other supported block like this then it's works:
References
No response