Bug while creating aws_lb_listener

Hello
I would like create on aws a network load balancer with a listener and target_group, but I’ve the bellow error while I’ve not set any weight parameter :

Blockquote
Error: creating ELBv2 Listener (arn:aws:elasticloadbalancing:eu-west-3:XXXXXXXXX:loadbalancer/net/af-production-beta-redis-common/503795cba9ebe6db): ValidationError: You cannot specify a target group weight on load balancers of type ‘network’
│ status code: 400, request id: 0b1eca8d-ed4e-4ced-992b-262dbc6edb7b

│ with aws_lb_listener.lb_listner_tcp_redis-common,
│ on redis-common.tf line 28, in resource “aws_lb_listener” “lb_listner_tcp_redis-common”:
│ 28: resource “aws_lb_listener” “lb_listner_tcp_redis-common” {

Bellow my tf files :

resource “aws_lb” “beta-redis-common” {
name = “af-production-beta-redis-common”
internal = true
load_balancer_type = “network”
subnets = data.terraform_remote_state.vpc_data.outputs.eks_vpc_private_subnets

enable_deletion_protection = false

tags = local.tags
}

resource “aws_lb_target_group” “nlb-target-group-eks-beta-redis-common” {
name = “af-production-beta-redis-common”
port = 6379
protocol = “TCP”
vpc_id = data.terraform_remote_state.vpc_data.outputs.eks_vpc
health_check {
enabled = true
healthy_threshold = 5
interval = 30
port = “traffic-port”
protocol = “TCP”
timeout = 5
unhealthy_threshold = 2
}
tags = local.tags
}
resource “aws_lb_listener” “lb_listner_tcp_redis-common” {
load_balancer_arn = aws_lb.beta-redis-common.id
port = “6379”
protocol = “TCP”
default_action {
type = “forward”
forward {
target_group {
arn = aws_lb_target_group.nlb-target-group-eks-beta-redis-common.id
}
}
}
tags = {
environment = local.tags.environment
client = local.tags.client
project = local.tags.project
cluster = local.cluster_name_2
purpose = “redis-common”
}
}
Thanks in advance.

Hello
Maybe someone get same issue ?