Skip to content

Commit

Permalink
Added support for Regex Match Statements (#63)
Browse files Browse the repository at this point in the history
* Added support for Regex Match Statements

* Lint and other fixes

Co-authored-by: Tomasz Rychlewicz <tomasz.rychlewicz@explaineverything.com>
  • Loading branch information
2 people authored and Ohid25 committed Jan 25, 2023
1 parent ccd0753 commit 8d395c4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,27 @@ module "waf" {
rule_group_reference_statement = {
arn = "arn:aws:wafv2:eu-west-1:111122223333:regional/rulegroup/rulegroup-test/a1bcdef2-1234-123a-abc0-1234a5bc67d8"
}
### Regex Match Rule example
{
name = "RegexMatchRule-9"
priority = "9"
action = "allow"
visibility_config = {
cloudwatch_metrics_enabled = false
metric_name = "RegexMatchRule-metric"
sampled_requests_enabled = false
}
byte_match_statement = {
field_to_match = {
uri_path = "{}"
}
regex_string = "/foo/"
priority = 0
type = "NONE"
}
},
### Size constraint Rule example
# Refer to https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/wafv2_web_acl#size-constraint-statement
Expand Down

0 comments on commit 8d395c4

Please sign in to comment.