Target groups in AWS for Network Load Balancers

0 votes
Network Load Balancer listens on port 80 and forwards traffic to the target group. My autoscaling group is configured to add any new targets to this target group.

However, my application on the target EC2 instances runs on port 8001, not 80.

So my targets should register under port 8001 in the target group. All new instances created by auto scaling are added as targets with port 80 and there is no way to auto specify which port that should be used instead (8001 for me).

Any ideas how to make this work?
Nov 13, 2018 in AWS by findingbugs
• 3,140 points
61 views

1 answer to this question.

0 votes

Ypu can change the port definition in the target group  for the port definition you're looking for. 

The port in the target group is the port on which the targets receive traffic. The port on the listener is the port on which the load balancer listens for requests.

So you should set port 80 on the listener and port 8001 on the target group.

You may have to recreate the target group for that. I don't see a way to modify the target port without recreating it.

answered Nov 13, 2018 by Priyaj
• 56,520 points

Related Questions In AWS

0 votes
3 answers
0 votes
1 answer

Memory utilization for auto-scaling groups --AWS

This is a working solution if your ...READ MORE

answered Aug 8, 2018 in AWS by Priyaj
• 56,520 points
92 views
+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

AWS S3 pricing for data in/out.

All traffic from mobile phones to S3 ...READ MORE

answered Jul 6, 2018 in AWS by Priyaj
• 56,520 points
40 views
0 votes
1 answer

Do you get charged for a security group in AWS EC2?

There is no charge applicable to Security ...READ MORE

answered Jul 18, 2018 in AWS by Priyaj
• 56,520 points
31 views