I faced the issue where I couldn't add an OR statement inside an AND statement. And seeing issue #61, it seems that I'm not the only one.
This PR adds the OR statement (the code was copied from the original OR statement) inside all ANDs that I could find in the code. Some ANDs do not support the NOT clause in the OR, therefore, I've removed it.
╷
│ Error: Unsupported block type
│
│ on umotif-public/main.tf line 1451, in resource "aws_wafv2_web_acl" "main":
│ 1451: dynamic "not_statement" {
│
│ Blocks of type "not_statement" are not expected here.
╵
I've tested the module on my particular use case (a redirect) and it seems to work, looking at the plan output.
Description
Hi,
I faced the issue where I couldn't add an OR statement inside an AND statement. And seeing issue #61, it seems that I'm not the only one.
This PR adds the OR statement (the code was copied from the original OR statement) inside all ANDs that I could find in the code. Some ANDs do not support the NOT clause in the OR, therefore, I've removed it.
I've tested the module on my particular use case (a redirect) and it seems to work, looking at the plan output.
Please review. Thanks.