Skip to content

Commit 41d751f

Browse files
update
1 parent 65c22bc commit 41d751f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

main.tf

+22
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,28 @@ resource "aws_wafv2_web_acl" "acl" {
8787
}
8888
}
8989

90+
rule {
91+
name = "BadInput"
92+
priority = 3
93+
94+
override_action {
95+
none {}
96+
}
97+
98+
statement {
99+
managed_rule_group_statement {
100+
name = "AWSManagedRulesKnownBadInputsRuleSet"
101+
vendor_name = "AWS"
102+
}
103+
}
104+
105+
visibility_config {
106+
cloudwatch_metrics_enabled = false
107+
metric_name = "${var.app_name}-${var.env}-bad-input-metric"
108+
sampled_requests_enabled = false
109+
}
110+
}
111+
90112
tags = var.tags
91113

92114
visibility_config {

0 commit comments

Comments
 (0)