-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
lb_target_group not compatible with aws_lb of type network #1912
Comments
This should be marked as a bug. It makes network load balancers unusable, and I can only assume it's supposed to be a working feature since it's referenced in the documentation. |
I'm seeing the same error as @fawzyj. I agree with @briankohler that this should be a bug. Without being able to create the TCP target group, you cannot create a complete Network Load Balancer in Terraform. |
+1 same issue, and this is also true for health checks, as it gives this error: |
+1 Confirming issue as well. |
Should be addressed by #1884 |
+1 Definitely a bug, not an enhancement - aws_lb of type "network" is unusable, unable to create aws_lb_listener with "TCP" protocol. |
Looks like there are more changes needed. Even if you build AWS provider with the changes above (#1884), NLB resource still fails with this message: Trying to create NLB with subnet_mapping blocks instead of subnets list just hangs indefinitely |
Yes, more changes are required. I had opened a duplicate issue by accident (#1944).
|
Not sure if this should be covered too, but NLBs (and maybe ALBs, I'm not sure off the top of my head) can now accept either an IP address or an InstanceID as targets. I've confirmed that doesn't work on on any branches, and it seems that feature is not trivial to incorporate. |
I'm not sure if this is related or not, but the I created two load balancers manually in the AWS console: one Network Load Balancer, one Application Load Balancer. When I try to reference the Network Load Balancer in an
terraform plan:
However when I plug in the ARN of the Application Load Balancer to the I can obviously split this into a separate issue if need be, just let me know. |
I don't think that SetSubnets issue was resolved in any mentioned issues above. The error is mentioned, but I don't see any fixes for this exact problem. When using config: resource "aws_lb" "nlb" {
name = "${var.nlb_name}"
load_balancer_type = "network"
internal = true
subnets = ["${var.subnet_ids}"]
} We receive:
NLB is created, but the error is annoying. |
Not only is the
|
Using aws version 1.2 - this problem still remains. |
@OferE the worst part is it clearly wasn't even tested, because setting a target attachment would have failed immediately since NLBs only support TCP protocols as far as I know. Even worse it made it to the Terraform documentation. This is definitely a blocker for using this feature. |
+1 |
3 similar comments
+1 |
+1 |
+1 |
@radeksimko can you mark this as bug? It's been long time since the nlb support released, but it's completely broken. There are some pending fixes already: #1884 |
+1 |
1 similar comment
+1 |
I will be taking a look into it this week, there's a couple of pending PRs. This is not a bug, because we never claimed anywhere NLB was fully supported (just that a single resource FYI: Reactions are the right way to express interest as they're also used in sorting, I just locked this thread to avoid further notifications. I'm well aware this also prevents people from using reactions, but there's no way to only lock comments on Github, unfortunately. Thanks for understanding. |
Using AWS provider 1.1
I cannot create lb_target_goup for aws_lb of type "network"
I want to create a network load balancer to balance some tcp connection, but when i set the aws_lb_target_group protocol to 'tcp' I got the following error:
The code:
The text was updated successfully, but these errors were encountered: