trussworks / terraform-aws-wafv2

Creates a WAF using AWS WAFv2 and AWS Managed Rule Sets
https://registry.terraform.io/modules/trussworks/wafv2
Apache License 2.0
104 stars 58 forks source link

Updated main.tf #55

Closed yuriy-murdza-tm closed 3 years ago

yuriy-murdza-tm commented 3 years ago

Variable ip_rate_based_rule isn't "list", it is "object". So, statement 'for_each = var.ip_rate_based_rule != null ? [var.ip_rate_based_rule] : []' isn't true. Also, as variable isn't list, we may use var.ip_rate_based_rule.name, instead rule.value.name (which isn't working).

dynamike commented 3 years ago

Can you give a more concrete example of the existing version not working with ip_rate_based_rules?

dynamike commented 3 years ago

Closing due to lack of response. Please reopen if you want to respond to the question around ip_rate_based_rules