Skip to content

Commit

Permalink
Merge pull request #9946 from pasali/f-aws-rate-limit
Browse files Browse the repository at this point in the history
Update rate based rule limit for WAF
  • Loading branch information
Ninir authored Sep 16, 2019
2 parents 1cec04a + 1edc1bd commit 7df63fc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion aws/resource_aws_waf_rate_based_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func resourceAwsWafRateBasedRule() *schema.Resource {
"rate_limit": {
Type: schema.TypeInt,
Required: true,
ValidateFunc: validation.IntAtLeast(2000),
ValidateFunc: validation.IntAtLeast(100),
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion aws/resource_aws_wafregional_rate_based_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func resourceAwsWafRegionalRateBasedRule() *schema.Resource {
"rate_limit": {
Type: schema.TypeInt,
Required: true,
ValidateFunc: validation.IntAtLeast(2000),
ValidateFunc: validation.IntAtLeast(100),
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/waf_rate_based_rule.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "aws_waf_rate_based_rule" "wafrule" {
metric_name = "tfWAFRule"
rate_key = "IP"
rate_limit = 2000
rate_limit = 100
predicates {
data_id = "${aws_waf_ipset.ipset.id}"
Expand All @@ -45,7 +45,7 @@ The following arguments are supported:
* `metric_name` - (Required) The name or description for the Amazon CloudWatch metric of this rule.
* `name` - (Required) The name or description of the rule.
* `rate_key` - (Required) Valid value is IP.
* `rate_limit` - (Required) The maximum number of requests, which have an identical value in the field specified by the RateKey, allowed in a five-minute period. Minimum value is 2000.
* `rate_limit` - (Required) The maximum number of requests, which have an identical value in the field specified by the RateKey, allowed in a five-minute period. Minimum value is 100.
* `predicates` - (Optional) The objects to include in a rule (documented below).

## Nested Blocks
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/wafregional_rate_based_rule.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "aws_wafregional_rate_based_rule" "wafrule" {
metric_name = "tfWAFRule"
rate_key = "IP"
rate_limit = 2000
rate_limit = 100
predicate {
data_id = "${aws_wafregional_ipset.ipset.id}"
Expand All @@ -45,7 +45,7 @@ The following arguments are supported:
* `metric_name` - (Required) The name or description for the Amazon CloudWatch metric of this rule.
* `name` - (Required) The name or description of the rule.
* `rate_key` - (Required) Valid value is IP.
* `rate_limit` - (Required) The maximum number of requests, which have an identical value in the field specified by the RateKey, allowed in a five-minute period. Minimum value is 2000.
* `rate_limit` - (Required) The maximum number of requests, which have an identical value in the field specified by the RateKey, allowed in a five-minute period. Minimum value is 100.
* `predicate` - (Optional) The objects to include in a rule (documented below).

## Nested Blocks
Expand Down

0 comments on commit 7df63fc

Please sign in to comment.