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

r/alb: on create, only modify enable_waf_fail_open argument if change is present #22072

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

anGie44
Copy link
Contributor

@anGie44 anGie44 commented Dec 6, 2021

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" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #22037

Output from acceptance testing before code change (us-gov-east-1): Test tf config does not explicitly configure enable_waf_fail_open

=== RUN   TestAccELBV2LoadBalancer_ALB_basic
=== PAUSE TestAccELBV2LoadBalancer_ALB_basic
=== CONT  TestAccELBV2LoadBalancer_ALB_basic
    load_balancer_test.go:69: Step 1/1 error: Error running apply: exit status 1

        Error: failure configuring LB attributes: ValidationError: Load balancer attribute key 'waf.fail_open.enabled' is not recognized
        	status code: 400, request id: 3294a3f6-a621-4d6d-b60a-bb44a7c4f80b

          with aws_lb.lb_test,
          on terraform_plugin_test.tf line 11, in resource "aws_lb" "lb_test":
          11: resource "aws_lb" "lb_test" {

--- FAIL: TestAccELBV2LoadBalancer_ALB_basic (171.81s)

Output from acceptance testing (us-west-2):

--- PASS: TestAccELBV2LoadBalancer_ALB_basic (158.63s)
--- PASS: TestAccELBV2LoadBalancer_ApplicationLoadBalancer_updateWafFailOpen (311.50s)

Output from acceptance testing (us-gov-west-1):

--- PASS: TestAccELBV2LoadBalancer_ALB_basic (175.30s)
--- PASS: TestAccELBV2LoadBalancer_ApplicationLoadBalancer_updateWafFailOpen (296.87s)

Output from acceptance testing (us-gov-east-1):

--- PASS: TestAccELBV2LoadBalancer_ALB_basic (206.77s)

@github-actions github-actions bot added service/elbv2 Issues and PRs that pertain to the elbv2 service. size/XS Managed by automation to categorize the size of a PR. labels Dec 6, 2021
@anGie44 anGie44 changed the title r/alb: only modify enable_waf_fail_open argument if configured on create r/alb: on create, only modify enable_waf_fail_open argument if change is present Dec 6, 2021
@anGie44 anGie44 added the bug Addresses a defect in current functionality. label Dec 6, 2021
@anGie44 anGie44 force-pushed the b-elbv2-load-balancer-enable-waf-fail-open branch from e53754d to 21d06bf Compare December 6, 2021 23:09
@anGie44 anGie44 force-pushed the b-elbv2-load-balancer-enable-waf-fail-open branch from 21d06bf to 3660b44 Compare December 6, 2021 23:24
@anGie44 anGie44 marked this pull request as ready for review December 6, 2021 23:34
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

us-gov-east-1
% make testacc TESTS=TestAccELBV2LoadBalancer_ALB_basic PKG=elbv2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/elbv2/... -v -count 1 -parallel 20 -run='TestAccELBV2LoadBalancer_ALB_basic' -timeout 180m
=== RUN   TestAccELBV2LoadBalancer_ALB_basic
=== PAUSE TestAccELBV2LoadBalancer_ALB_basic
=== CONT  TestAccELBV2LoadBalancer_ALB_basic
--- PASS: TestAccELBV2LoadBalancer_ALB_basic (166.34s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/elbv2	170.064s
us-west-2
% make testacc TESTS=TestAccELBV2LoadBalancer_ApplicationLoadBalancer_updateWafFailOpen PKG=elbv2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/elbv2/... -v -count 1 -parallel 20 -run='TestAccELBV2LoadBalancer_ApplicationLoadBalancer_updateWafFailOpen' -timeout 180m
=== RUN   TestAccELBV2LoadBalancer_ApplicationLoadBalancer_updateWafFailOpen
=== PAUSE TestAccELBV2LoadBalancer_ApplicationLoadBalancer_updateWafFailOpen
=== CONT  TestAccELBV2LoadBalancer_ApplicationLoadBalancer_updateWafFailOpen
--- PASS: TestAccELBV2LoadBalancer_ApplicationLoadBalancer_updateWafFailOpen (336.10s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/elbv2	339.577s

@anGie44 anGie44 added this to the v3.69.0 milestone Dec 7, 2021
@anGie44 anGie44 merged commit 23f8295 into main Dec 7, 2021
@anGie44 anGie44 deleted the b-elbv2-load-balancer-enable-waf-fail-open branch December 7, 2021 16:25
@github-actions
Copy link

This functionality has been released in v3.69.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. Thank you!

@github-actions
Copy link

github-actions bot commented Jun 3, 2022

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/elbv2 Issues and PRs that pertain to the elbv2 service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
2 participants