I am running into what seems to be a bug in `aws.l...
# aws
l
I am running into what seems to be a bug in
aws.lb.listener
? Has anyone seen this behavior before? Keeps saying
You cannot specify a target group weight on load balancers of type 'network'
and my group definition looks like:
Copy code
const fileUploadListener = new aws.lb.Listener('fileUploadListener',
    {
      defaultActions: [
        {
          type: 'forward',
          forward: {
            targetGroups: [{ arn: fileUploadTargetGroup.arn }],
          },
        },
      ],
      loadBalancerArn: // some ARN,
      port: 8084,
      protocol: 'TCP',
    },
  )
Rich diff shows it is assigning a value of
1
to the weight which I feel is like a default that breaks with NLBs
I think it is a bug unless there is a different way to create the listener that I am not aware of https://github.com/hashicorp/terraform-provider-aws/blob/main/aws/resource_aws_lb_listener.go#L238
Created ticket with the Terraform provider https://github.com/hashicorp/terraform-provider-aws/issues/20163