File tree 1 file changed +2
-23
lines changed
1 file changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ resource "aws_wafv2_web_acl" "main" {
14
14
}
15
15
16
16
dynamic "rule" {
17
- for_each = var. header_match_rules
17
+ # for_each = var.header_match_rules == null ? {} : var.header_match_rules
18
+ for_each = var. header_match_rules == null ? {} : var. header_match_rules
18
19
content {
19
20
name = " ${ header_rule . value [" name" ]} -header-match-rule"
20
21
priority = header_rule. value [" priority" ]
@@ -47,28 +48,6 @@ resource "aws_wafv2_web_acl" "main" {
47
48
priority = 1
48
49
type = " LOWERCASE"
49
50
}
50
-
51
- dynamic "scope_down_statement" {
52
- for_each = length (concat (rule. value [" country_list" ], rule. value [" exempt_country_list" ])) > 0 ? [1 ] : []
53
- content {
54
- dynamic "geo_match_statement" {
55
- for_each = length (rule. value [" country_list" ]) > 0 ? [1 ] : []
56
- content {
57
- country_codes = rule. value [" country_list" ]
58
- }
59
- }
60
- dynamic "not_statement" {
61
- for_each = length (rule. value [" exempt_country_list" ]) > 0 ? [1 ] : []
62
- content {
63
- statement {
64
- geo_match_statement {
65
- country_codes = rule. value [" exempt_country_list" ]
66
- }
67
- }
68
- }
69
- }
70
- }
71
- }
72
51
}
73
52
}
74
53
visibility_config {
You can’t perform that action at this time.
0 commit comments