-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathrule.tf
52 lines (42 loc) · 1.06 KB
/
rule.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
resource "aws_wafv2_web_acl" "waf_acl" {
name = "waf_acl"
description = "Example of a deploying just Log4JRCE in a WAF"
scope = "REGIONAL"
# scope = "CLOUDFRONT"
default_action {
block {}
}
rule {
name = "first_waf_rule"
priority = 1
override_action {
none {}
}
statement {
managed_rule_group_statement {
name = "AWSManagedRulesKnownBadInputsRuleSet"
vendor_name = "AWS"
# Excluding all these leaves only Log4JRCE
excluded_rule {
name = "Host_localhost_HEADER"
}
excluded_rule {
name = "PROPFIND_METHOD"
}
excluded_rule {
name = "ExploitablePaths_URIPATH"
}
}
}
visibility_config {
cloudwatch_metrics_enabled = false
metric_name = "Log4JRCE-blocks"
sampled_requests_enabled = false
}
}
visibility_config {
cloudwatch_metrics_enabled = false
metric_name = "Log4JRCE-blocks"
sampled_requests_enabled = false
}
}