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

Add support import for aws_waf_rule_group resource #9254

Conversation

teraken0509
Copy link
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Reference #9212

Release note for CHANGELOG:

resource/aws_waf_rule_group: Support resource import

Output from acceptance testing:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSWafRuleGroup_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -parallel 20 -run=TestAccAWSWafRuleGroup_ -timeout 120m
=== RUN   TestAccAWSWafRuleGroup_basic
=== PAUSE TestAccAWSWafRuleGroup_basic
=== RUN   TestAccAWSWafRuleGroup_changeNameForceNew
=== PAUSE TestAccAWSWafRuleGroup_changeNameForceNew
=== RUN   TestAccAWSWafRuleGroup_disappears
=== PAUSE TestAccAWSWafRuleGroup_disappears
=== RUN   TestAccAWSWafRuleGroup_changeActivatedRules
=== PAUSE TestAccAWSWafRuleGroup_changeActivatedRules
=== RUN   TestAccAWSWafRuleGroup_noActivatedRules
=== PAUSE TestAccAWSWafRuleGroup_noActivatedRules
=== CONT  TestAccAWSWafRuleGroup_basic
=== CONT  TestAccAWSWafRuleGroup_disappears
=== CONT  TestAccAWSWafRuleGroup_changeActivatedRules
=== CONT  TestAccAWSWafRuleGroup_noActivatedRules
=== CONT  TestAccAWSWafRuleGroup_changeNameForceNew
--- FAIL: TestAccAWSWafRuleGroup_changeNameForceNew (31.18s)
    testing.go:568: Step 0 error: errors during apply:

        Error: WAFLimitsExceededException: Operation would result in exceeding resource limits.
        	status code: 400, request id: c223e71f-9f9f-11e9-b8f1-7d8164ac8db6

          on /var/folders/w9/yq_zm9bj24z06tlty8163139j7txby/T/tf-test327365376/main.tf line 7:
          (source code not available)


--- FAIL: TestAccAWSWafRuleGroup_disappears (33.42s)
    testing.go:568: Step 0 error: errors during apply:

        Error: WAFLimitsExceededException: Operation would result in exceeding resource limits.
        	status code: 400, request id: c3148954-9f9f-11e9-a420-835668605bb5

          on /var/folders/w9/yq_zm9bj24z06tlty8163139j7txby/T/tf-test402598450/main.tf line 7:
          (source code not available)


--- PASS: TestAccAWSWafRuleGroup_noActivatedRules (35.92s)
--- PASS: TestAccAWSWafRuleGroup_basic (58.25s)
--- PASS: TestAccAWSWafRuleGroup_changeActivatedRules (89.01s)
FAIL
FAIL	github.com/terraform-providers/terraform-provider-aws/aws	89.107s
make: *** [testacc] Error 1

@teraken0509 teraken0509 requested a review from a team July 6, 2019 03:43
@ghost ghost added size/M Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. service/waf Issues and PRs that pertain to the waf service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Jul 6, 2019
@bflad bflad added the enhancement Requests to existing resources that expand the functionality or scope. label Jul 8, 2019
@bflad bflad added this to the v2.19.0 milestone Jul 8, 2019
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @kterada0509 🚀

--- PASS: TestAccAWSWafRuleGroup_disappears (18.18s)
--- PASS: TestAccAWSWafRuleGroup_noActivatedRules (22.57s)
--- PASS: TestAccAWSWafRuleGroup_changeActivatedRules (49.14s)
--- PASS: TestAccAWSWafRuleGroup_changeNameForceNew (54.92s)
--- PASS: TestAccAWSWafRuleGroup_basic (55.68s)

@bflad bflad merged commit 49286f7 into hashicorp:master Jul 8, 2019
pull bot pushed a commit to KernelPanicAUS/terraform-provider-aws that referenced this pull request Jul 8, 2019
@bflad
Copy link
Contributor

bflad commented Jul 11, 2019

This has been released in version 2.19.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Nov 2, 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 2, 2019
@teraken0509 teraken0509 deleted the feature/add-import-support-for-aws_waf_rule_group-resource branch March 5, 2020 14:02
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. enhancement Requests to existing resources that expand the functionality or scope. service/waf Issues and PRs that pertain to the waf service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants