generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wardship: add cloudwatch alerts & WAF (#3971)
* add cloudwatch alert config * add WAF config
- Loading branch information
1 parent
f10c727
commit dfb8bef
Showing
3 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
resource "aws_wafv2_web_acl" "wardship_web_acl" { | ||
name = "wardship-web-acl" | ||
scope = "REGIONAL" | ||
|
||
default_action { | ||
allow {} | ||
} | ||
|
||
rule { | ||
name = "common-rule-set" | ||
priority = 1 | ||
|
||
override_action { | ||
none {} | ||
} | ||
|
||
statement { | ||
managed_rule_group_statement { | ||
name = "AWSManagedRulesCommonRuleSet" | ||
vendor_name = "AWS" | ||
} | ||
} | ||
|
||
visibility_config { | ||
cloudwatch_metrics_enabled = true | ||
metric_name = "AWSManagedRulesCommonRuleSetMetrics" | ||
sampled_requests_enabled = true | ||
} | ||
} | ||
|
||
visibility_config { | ||
cloudwatch_metrics_enabled = true | ||
metric_name = "wardship-web-acl" | ||
sampled_requests_enabled = true | ||
} | ||
} |