-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaws-waf.tf
More file actions
34 lines (32 loc) · 880 Bytes
/
aws-waf.tf
File metadata and controls
34 lines (32 loc) · 880 Bytes
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
resource "aws_wafv2_web_acl" "this-waf-web-acl" {
provider = aws.aws-waf-web-acl-provider
name = "${local.parent_org_name}-${local.cloud_provider}-${local.region}-${local.environment}-waf_web_acl"
description = "Bot Control waf aws acl"
scope = "CLOUDFRONT"
default_action {
allow {}
}
rule {
name = "AWS-AWSManagedRulesBotControlRuleSet"
priority = 0
statement {
managed_rule_group_statement {
vendor_name = "AWS"
name = "AWSManagedRulesBotControlRuleSet"
}
}
override_action {
count {}
}
visibility_config {
sampled_requests_enabled = true
cloudwatch_metrics_enabled = true
metric_name = "AWS-AWSManagedRulesBotControlRuleSet"
}
}
visibility_config {
sampled_requests_enabled = true
cloudwatch_metrics_enabled = true
metric_name = "AWS-AWSManagedRulesBotControlRuleSet"
}
}