-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Fixes errors with target_group_arn
and forward
for aws_lb_listener
and aws_lb_listener_rule
#35671
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 A new usage of AWS SDK for Go V1 was detected. Please prefer AWS SDK for Go V2 for all net-new services. If this is an enhancement or bug fix to an existing AWS SDK Go V1 based resource, this comment can be safely ignored. For additional information refer to the AWS SDK for Go Versions page in the contributor guide. |
65c5122
to
b7bb8f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccELBV2Listener_' PKG=elbv2 ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/elbv2/... -v -count 1 -parallel 2 -run=TestAccELBV2Listener_ -timeout 360m
=== RUN TestAccELBV2Listener_Application_basic
=== PAUSE TestAccELBV2Listener_Application_basic
=== RUN TestAccELBV2Listener_Network_basic
=== PAUSE TestAccELBV2Listener_Network_basic
=== RUN TestAccELBV2Listener_Gateway_basic
=== PAUSE TestAccELBV2Listener_Gateway_basic
=== RUN TestAccELBV2Listener_disappears
=== PAUSE TestAccELBV2Listener_disappears
=== RUN TestAccELBV2Listener_tags
=== PAUSE TestAccELBV2Listener_tags
=== RUN TestAccELBV2Listener_updateForwardBasic
=== PAUSE TestAccELBV2Listener_updateForwardBasic
=== RUN TestAccELBV2Listener_forwardWeighted
=== PAUSE TestAccELBV2Listener_forwardWeighted
=== RUN TestAccELBV2Listener_forwardTargetARNAndBlock
=== PAUSE TestAccELBV2Listener_forwardTargetARNAndBlock
=== RUN TestAccELBV2Listener_ActionForward_TargetGroupARNToForwardBlock_NoChanges
=== PAUSE TestAccELBV2Listener_ActionForward_TargetGroupARNToForwardBlock_NoChanges
=== RUN TestAccELBV2Listener_ActionForward_ForwardBlock_AddStickiness
=== PAUSE TestAccELBV2Listener_ActionForward_ForwardBlock_AddStickiness
=== RUN TestAccELBV2Listener_ActionForward_ForwardBlock_RemoveStickiness
=== PAUSE TestAccELBV2Listener_ActionForward_ForwardBlock_RemoveStickiness
=== RUN TestAccELBV2Listener_ActionForward_TargetGroupARNToForwardBlock_WeightAndStickiness
=== PAUSE TestAccELBV2Listener_ActionForward_TargetGroupARNToForwardBlock_WeightAndStickiness
=== RUN TestAccELBV2Listener_ActionForward_ForwardBlockToTargetGroupARN_NoChanges
=== PAUSE TestAccELBV2Listener_ActionForward_ForwardBlockToTargetGroupARN_NoChanges
=== RUN TestAccELBV2Listener_ActionForward_ForwardBlockToTargetGroupARN_WeightAndStickiness
=== PAUSE TestAccELBV2Listener_ActionForward_ForwardBlockToTargetGroupARN_WeightAndStickiness
=== RUN TestAccELBV2Listener_ActionForward_ForwardBlock_AddAction
=== PAUSE TestAccELBV2Listener_ActionForward_ForwardBlock_AddAction
=== RUN TestAccELBV2Listener_ActionForward_ForwardBlock_RemoveAction
=== PAUSE TestAccELBV2Listener_ActionForward_ForwardBlock_RemoveAction
=== RUN TestAccELBV2Listener_ActionForward_IgnoreFields
=== PAUSE TestAccELBV2Listener_ActionForward_IgnoreFields
=== RUN TestAccELBV2Listener_Protocol_upd
=== PAUSE TestAccELBV2Listener_Protocol_upd
=== RUN TestAccELBV2Listener_backwardsCompatibility
=== PAUSE TestAccELBV2Listener_backwardsCompatibility
=== RUN TestAccELBV2Listener_Protocol_https
=== PAUSE TestAccELBV2Listener_Protocol_https
=== RUN TestAccELBV2Listener_mutualAuthentication
=== PAUSE TestAccELBV2Listener_mutualAuthentication
=== RUN TestAccELBV2Listener_mutualAuthenticationPassthrough
=== PAUSE TestAccELBV2Listener_mutualAuthenticationPassthrough
=== RUN TestAccELBV2Listener_LoadBalancerARN_gatewayLoadBalancer
=== PAUSE TestAccELBV2Listener_LoadBalancerARN_gatewayLoadBalancer
=== RUN TestAccELBV2Listener_Protocol_tls
=== PAUSE TestAccELBV2Listener_Protocol_tls
=== RUN TestAccELBV2Listener_redirect
=== PAUSE TestAccELBV2Listener_redirect
=== RUN TestAccELBV2Listener_fixedResponse
=== PAUSE TestAccELBV2Listener_fixedResponse
=== RUN TestAccELBV2Listener_cognito
=== PAUSE TestAccELBV2Listener_cognito
=== RUN TestAccELBV2Listener_oidc
=== PAUSE TestAccELBV2Listener_oidc
=== RUN TestAccELBV2Listener_DefaultAction_defaultOrder
=== PAUSE TestAccELBV2Listener_DefaultAction_defaultOrder
=== RUN TestAccELBV2Listener_DefaultAction_specifyOrder
=== PAUSE TestAccELBV2Listener_DefaultAction_specifyOrder
=== RUN TestAccELBV2Listener_DefaultAction_actionDisappears
=== PAUSE TestAccELBV2Listener_DefaultAction_actionDisappears
=== RUN TestAccELBV2Listener_EmptyDefaultAction
=== PAUSE TestAccELBV2Listener_EmptyDefaultAction
=== CONT TestAccELBV2Listener_Application_basic
=== CONT TestAccELBV2Listener_ActionForward_IgnoreFields
--- PASS: TestAccELBV2Listener_Application_basic (205.16s)
=== CONT TestAccELBV2Listener_redirect
--- PASS: TestAccELBV2Listener_ActionForward_IgnoreFields (215.19s)
=== CONT TestAccELBV2Listener_EmptyDefaultAction
=== RUN TestAccELBV2Listener_EmptyDefaultAction/forward
=== PAUSE TestAccELBV2Listener_EmptyDefaultAction/forward
=== RUN TestAccELBV2Listener_EmptyDefaultAction/authenticate-oidc
=== PAUSE TestAccELBV2Listener_EmptyDefaultAction/authenticate-oidc
=== RUN TestAccELBV2Listener_EmptyDefaultAction/authenticate-cognito
=== PAUSE TestAccELBV2Listener_EmptyDefaultAction/authenticate-cognito
=== RUN TestAccELBV2Listener_EmptyDefaultAction/redirect
=== PAUSE TestAccELBV2Listener_EmptyDefaultAction/redirect
=== RUN TestAccELBV2Listener_EmptyDefaultAction/fixed-response
=== PAUSE TestAccELBV2Listener_EmptyDefaultAction/fixed-response
=== CONT TestAccELBV2Listener_DefaultAction_actionDisappears
--- PASS: TestAccELBV2Listener_redirect (203.59s)
=== CONT TestAccELBV2Listener_DefaultAction_specifyOrder
--- PASS: TestAccELBV2Listener_DefaultAction_actionDisappears (220.52s)
=== CONT TestAccELBV2Listener_DefaultAction_defaultOrder
--- PASS: TestAccELBV2Listener_DefaultAction_specifyOrder (205.26s)
=== CONT TestAccELBV2Listener_oidc
--- PASS: TestAccELBV2Listener_DefaultAction_defaultOrder (213.52s)
=== CONT TestAccELBV2Listener_cognito
--- PASS: TestAccELBV2Listener_oidc (232.09s)
=== CONT TestAccELBV2Listener_fixedResponse
--- PASS: TestAccELBV2Listener_cognito (243.81s)
=== CONT TestAccELBV2Listener_mutualAuthentication
--- PASS: TestAccELBV2Listener_fixedResponse (223.03s)
=== CONT TestAccELBV2Listener_Protocol_tls
--- PASS: TestAccELBV2Listener_mutualAuthentication (232.48s)
=== CONT TestAccELBV2Listener_LoadBalancerARN_gatewayLoadBalancer
--- PASS: TestAccELBV2Listener_LoadBalancerARN_gatewayLoadBalancer (181.69s)
=== CONT TestAccELBV2Listener_mutualAuthenticationPassthrough
--- PASS: TestAccELBV2Listener_Protocol_tls (340.22s)
=== CONT TestAccELBV2Listener_backwardsCompatibility
--- PASS: TestAccELBV2Listener_mutualAuthenticationPassthrough (214.39s)
=== CONT TestAccELBV2Listener_Protocol_upd
--- PASS: TestAccELBV2Listener_backwardsCompatibility (213.96s)
=== CONT TestAccELBV2Listener_ActionForward_TargetGroupARNToForwardBlock_NoChanges
--- PASS: TestAccELBV2Listener_Protocol_upd (249.55s)
=== CONT TestAccELBV2Listener_ActionForward_ForwardBlock_RemoveAction
--- PASS: TestAccELBV2Listener_ActionForward_TargetGroupARNToForwardBlock_NoChanges (219.10s)
=== CONT TestAccELBV2Listener_ActionForward_ForwardBlock_AddAction
--- PASS: TestAccELBV2Listener_ActionForward_ForwardBlock_RemoveAction (234.04s)
=== CONT TestAccELBV2Listener_ActionForward_ForwardBlockToTargetGroupARN_WeightAndStickiness
--- PASS: TestAccELBV2Listener_ActionForward_ForwardBlock_AddAction (242.04s)
=== CONT TestAccELBV2Listener_ActionForward_ForwardBlockToTargetGroupARN_NoChanges
--- PASS: TestAccELBV2Listener_ActionForward_ForwardBlockToTargetGroupARN_WeightAndStickiness (239.63s)
=== CONT TestAccELBV2Listener_ActionForward_TargetGroupARNToForwardBlock_WeightAndStickiness
--- PASS: TestAccELBV2Listener_ActionForward_ForwardBlockToTargetGroupARN_NoChanges (243.59s)
=== CONT TestAccELBV2Listener_ActionForward_ForwardBlock_RemoveStickiness
--- PASS: TestAccELBV2Listener_ActionForward_TargetGroupARNToForwardBlock_WeightAndStickiness (235.10s)
=== CONT TestAccELBV2Listener_ActionForward_ForwardBlock_AddStickiness
--- PASS: TestAccELBV2Listener_ActionForward_ForwardBlock_RemoveStickiness (235.44s)
=== CONT TestAccELBV2Listener_tags
--- PASS: TestAccELBV2Listener_ActionForward_ForwardBlock_AddStickiness (234.85s)
=== CONT TestAccELBV2Listener_forwardTargetARNAndBlock
--- PASS: TestAccELBV2Listener_tags (263.09s)
=== CONT TestAccELBV2Listener_forwardWeighted
--- PASS: TestAccELBV2Listener_forwardTargetARNAndBlock (189.17s)
=== CONT TestAccELBV2Listener_updateForwardBasic
--- PASS: TestAccELBV2Listener_forwardWeighted (244.05s)
=== CONT TestAccELBV2Listener_Gateway_basic
--- PASS: TestAccELBV2Listener_updateForwardBasic (233.35s)
=== CONT TestAccELBV2Listener_disappears
--- PASS: TestAccELBV2Listener_Gateway_basic (197.17s)
=== CONT TestAccELBV2Listener_Network_basic
--- PASS: TestAccELBV2Listener_disappears (218.42s)
=== CONT TestAccELBV2Listener_Protocol_https
--- PASS: TestAccELBV2Listener_Network_basic (228.02s)
=== CONT TestAccELBV2Listener_EmptyDefaultAction/forward
=== CONT TestAccELBV2Listener_EmptyDefaultAction/redirect
=== CONT TestAccELBV2Listener_EmptyDefaultAction/fixed-response
=== CONT TestAccELBV2Listener_EmptyDefaultAction/authenticate-cognito
=== CONT TestAccELBV2Listener_EmptyDefaultAction/authenticate-oidc
--- PASS: TestAccELBV2Listener_EmptyDefaultAction (0.00s)
--- PASS: TestAccELBV2Listener_EmptyDefaultAction/forward (3.15s)
--- PASS: TestAccELBV2Listener_EmptyDefaultAction/redirect (3.18s)
--- PASS: TestAccELBV2Listener_EmptyDefaultAction/fixed-response (3.21s)
--- PASS: TestAccELBV2Listener_EmptyDefaultAction/authenticate-cognito (3.11s)
--- PASS: TestAccELBV2Listener_EmptyDefaultAction/authenticate-oidc (3.09s)
--- PASS: TestAccELBV2Listener_Protocol_https (223.63s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/elbv2 3590.789s
This functionality has been released in v5.36.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! |
This reverts the following upstream PRs: hashicorp/terraform-provider-aws#35671 hashicorp/terraform-provider-aws#35678 as a quick fix to mitigate #3421 until we root-cause it. Details on my findings so far: #3421 (comment) It looks to me like the issue originates somewhere in our handling of nulls/empty in the bridge, so seems unlikely to get fixed today. It also adds a test for LB listeners. I've verified that the test triggers the panic without the patches and that the patches resolve it.
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. |
Description
The resource types
aws_lb_listener
andaws_lb_listener_rule
allow specifying forward actions in two ways: if a single target group is used, either thetarget_group_arn
orforward.target_group.arn
can be specified; if multiple target groups are used, multipleforward.target_group
s can be specified.However, if a single
forward.target_group
was specified, other settings in theforward
block were not honoured.Relations
Closes #35621
Closes #35576
Closes #32983
Closes #28083
Closes #22526
Closes #20200
Closes #15144
Closes #14119
Output from Acceptance Testing