File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,17 @@ resource "aws_wafv2_web_acl" "main" {
16
16
dynamic "rule" {
17
17
for_each = var. header_match_rules
18
18
content {
19
- name = " ${ header_rule . value [" name" ]} -header-match-rule"
20
- priority = header_rule . value [" priority" ]
19
+ name = " ${ rule . value [" name" ]} -header-match-rule"
20
+ priority = rule . value [" priority" ]
21
21
22
22
dynamic "action" {
23
- for_each = header_rule . value [" count_override" ] == true ? [1 ] : []
23
+ for_each = rule . value [" count_override" ] == true ? [1 ] : []
24
24
content {
25
25
count {}
26
26
}
27
27
}
28
28
dynamic "action" {
29
- for_each = header_rule . value [" count_override" ] == false ? [1 ] : []
29
+ for_each = rule . value [" count_override" ] == false ? [1 ] : []
30
30
content {
31
31
block {}
32
32
}
@@ -35,13 +35,13 @@ resource "aws_wafv2_web_acl" "main" {
35
35
byte_match_statement {
36
36
field_to_match {
37
37
single_header {
38
- name = lower (header_rule . value [" header_name" ])
38
+ name = lower (rule . value [" header_name" ])
39
39
}
40
40
}
41
41
42
42
positional_constraint = " CONTAINS"
43
43
44
- search_string = header_rule . value [" header_value" ]
44
+ search_string = rule . value [" header_value" ]
45
45
46
46
text_transformation {
47
47
priority = 1
You can’t perform that action at this time.
0 commit comments