-
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
Error: Network Load Balancers do not support Stickiness #9093
Comments
I added this as a workaround to my target_group & it worked:
|
I am trying to deploy an NLB and am unable to do so at this point. The empty array workaround did not work and the stickiness block with enabled set to false also didn't work. At this point, being able to deploy NLBs via Terraform is dead in the water for me. |
I got passed this error in resource "aws_lb_target_group" "node_port_http" {
name = "node-port-nlb-tg-http"
port = 80
protocol = "TCP"
vpc_id = <vpc_id>
stickiness {
enabled = false
type = "lb_cookie"
}
} |
I'm pretty sure NLB's do support stickiness at this point. There's a checkbox in the console to enable it on a target group. |
Yes, I confirmed with AWS support that stickiness can be configured and works for all types of ELBs. And applied it manually however it will be good to get this applied via terraform code. |
@darrenfurr and @demisx were you folks expecting the target groups to have |
Something like this would probably be sufficient: For better pre-apply validation, it could be extended to only allow
https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_TargetGroupAttribute.html |
@ishworg -
It was to say that TF applied successfully, but I had to "fake it" using the stickiness workaround above. |
The stickiness workaround only works for protocol If I apply again with no change, I see the change it tries to make is:
But the documentation states that However, the AWS documentation states that the only type value for stickiness is |
It seems like there exists a PR for this: #13762 |
It seems the previous PR is stale as the author is nor responding. I've created another PR to hopefully get this in: #15295 |
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! |
aws_lb for NLB with no stickiness configuration causes "Error: Network Load Balancers do not support Stickiness".
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
As in Resource: aws_lb_target_group, stickiness is optional, hence forcing to place it is a bug.
Debug Output
Panic Output
Expected Behavior
No error.
Actual Behavior
Error.
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: