Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rate based rule limit for WAF #9946

Merged
merged 2 commits into from
Sep 16, 2019
Merged

Conversation

pasali
Copy link

@pasali pasali commented Sep 1, 2019

@pasali pasali requested a review from a team September 1, 2019 15:34
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/waf Issues and PRs that pertain to the waf service. labels Sep 1, 2019
Copy link
Contributor

@Ninir Ninir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ghost ghost added the documentation Introduces or discusses updates to documentation. label Sep 8, 2019
Copy link
Contributor

@Ninir Ninir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me:

$ TF_ACC=1 go test ./... -v -parallel 4 -run=TestAccAWSWafRegionalRateBasedRule_ -timeout 120m                                                                                                                                                                                                                                                            [09/16/19 10:42:37 - 10160]
?   	github.com/terraform-providers/terraform-provider-aws	[no test files]
=== RUN   TestAccAWSWafRegionalRateBasedRule_basic
=== PAUSE TestAccAWSWafRegionalRateBasedRule_basic
=== RUN   TestAccAWSWafRegionalRateBasedRule_changeNameForceNew
=== PAUSE TestAccAWSWafRegionalRateBasedRule_changeNameForceNew
=== RUN   TestAccAWSWafRegionalRateBasedRule_disappears
=== PAUSE TestAccAWSWafRegionalRateBasedRule_disappears
=== RUN   TestAccAWSWafRegionalRateBasedRule_changePredicates
=== PAUSE TestAccAWSWafRegionalRateBasedRule_changePredicates
=== RUN   TestAccAWSWafRegionalRateBasedRule_changeRateLimit
=== PAUSE TestAccAWSWafRegionalRateBasedRule_changeRateLimit
=== RUN   TestAccAWSWafRegionalRateBasedRule_noPredicates
=== PAUSE TestAccAWSWafRegionalRateBasedRule_noPredicates
=== CONT  TestAccAWSWafRegionalRateBasedRule_basic
=== CONT  TestAccAWSWafRegionalRateBasedRule_noPredicates
=== CONT  TestAccAWSWafRegionalRateBasedRule_changeRateLimit
=== CONT  TestAccAWSWafRegionalRateBasedRule_disappears
--- PASS: TestAccAWSWafRegionalRateBasedRule_noPredicates (36.11s)
=== CONT  TestAccAWSWafRegionalRateBasedRule_changePredicates
--- PASS: TestAccAWSWafRegionalRateBasedRule_disappears (55.42s)
=== CONT  TestAccAWSWafRegionalRateBasedRule_changeNameForceNew
--- PASS: TestAccAWSWafRegionalRateBasedRule_changeRateLimit (57.43s)
--- PASS: TestAccAWSWafRegionalRateBasedRule_basic (58.77s)
--- PASS: TestAccAWSWafRegionalRateBasedRule_changePredicates (69.95s)
--- PASS: TestAccAWSWafRegionalRateBasedRule_changeNameForceNew (81.61s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	138.302s


$ make testacc TESTARGS='-run=TestAccAWSWafRateBasedRule_'                                                                                                                    [09/15/19 21:16:18 - 10153]
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -parallel 20 -run=TestAccAWSWafRateBasedRule_ -timeout 120m
?   	github.com/terraform-providers/terraform-provider-aws	[no test files]
=== RUN   TestAccAWSWafRateBasedRule_basic
=== PAUSE TestAccAWSWafRateBasedRule_basic
=== RUN   TestAccAWSWafRateBasedRule_changeNameForceNew
=== PAUSE TestAccAWSWafRateBasedRule_changeNameForceNew
=== RUN   TestAccAWSWafRateBasedRule_disappears
=== PAUSE TestAccAWSWafRateBasedRule_disappears
=== RUN   TestAccAWSWafRateBasedRule_changePredicates
=== PAUSE TestAccAWSWafRateBasedRule_changePredicates
=== RUN   TestAccAWSWafRateBasedRule_noPredicates
=== PAUSE TestAccAWSWafRateBasedRule_noPredicates
=== CONT  TestAccAWSWafRateBasedRule_basic
=== CONT  TestAccAWSWafRateBasedRule_changePredicates
=== CONT  TestAccAWSWafRateBasedRule_disappears
=== CONT  TestAccAWSWafRateBasedRule_noPredicates
=== CONT  TestAccAWSWafRateBasedRule_changeNameForceNew
--- PASS: TestAccAWSWafRateBasedRule_noPredicates (28.86s)
--- PASS: TestAccAWSWafRateBasedRule_basic (47.86s)
--- PASS: TestAccAWSWafRateBasedRule_disappears (53.71s)
--- PASS: TestAccAWSWafRateBasedRule_changePredicates (75.00s)
--- PASS: TestAccAWSWafRateBasedRule_changeNameForceNew (82.80s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	85.997s

Thanks @pasali !

@vad
Copy link

vad commented Sep 23, 2019

I just updated the provider and it gives me the same error as before:

aws_wafregional_rate_based_rule.login_rule: Modifying... [id=<CUT>]

Error: Error updating WAF Regional Rate Based Rule Predicates (<CUT>): Error getting WAF regional change token: InvalidParameter: 1 validation error(s) found.
- minimum field value of 2000, UpdateRateBasedRuleInput.RateLimit.
$ terraform version
Terraform v0.12.9
+ provider.aws v2.29.0

Is it just me? Could it be that the AWS client should be updated too?

@bflad
Copy link
Contributor

bflad commented Sep 24, 2019

Hi @vad, its not likely just you. I reopened #10058 with details about the upstream issue(s) here: #10058 (comment)

@pasali
Copy link
Author

pasali commented Sep 25, 2019

Sorry for the error, i assumed aws would have changed their REST API.

@praveensastry
Copy link
Contributor

FWIW, I tried updating the rate limit value to 100 through the web console and I could. cli is still throwing similar error though.

@ghost
Copy link

ghost commented Nov 1, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Nov 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. service/waf Issues and PRs that pertain to the waf service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants