-
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
Can't create a load balancer target group for network load balancer #9050
Comments
Actually setting it with enabled = false ended up working, I had multiple target groups that needed updating. 😞 |
This seems like an issue...the default setting for the target groups assume an ALB which breaks the NLB configuration. |
Why is this closed? |
The issue I had was due to a mistake in my code with multiple load
balancers.
You can create the target group but you have to explicitly add a stickiness
block with enabled=false in it.
I'd say that should be fixed but it's more of an improvement that a
blocking bug.
I could do a PR to try and fix it but I'd need to understand why the
special case was added in the code, maybe it's because we can't have
conditional defaults? (Ie the default block for the stickiness is
conditional on the target group protocol). Having looked at the code it
seems it was explicitly added that way so there must be a reason.
…On Sat, 22 Jun 2019, 11:05 am oonisim, ***@***.***> wrote:
Why is this closed?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#9050>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABN7DWVVFNLRHCZYM5AO7DP3XTMTANCNFSM4HZIQ2GQ>
.
|
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! |
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
The target group is created
Actual Behavior
The target group is not created with the following error
I've tried the work around from
#2746
enabled=false
The doc says
and the code at https://github.com/terraform-providers/terraform-provider-aws/blob/master/aws/resource_aws_lb_target_group.go#L422
Yet this check still fails
https://github.com/terraform-providers/terraform-provider-aws/blob/master/aws/resource_aws_lb_target_group.go#L682
When I look at my debug output, I can see the following for an ALB I also have which doesn't have any stickiness block in the HCL
I do see this warning in the target group related to my TCP load balancer
But nothing else
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: