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,260 points
2,613 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.

If you are still unclear, joining the AWS certification program today is recommended.

answered Nov 13, 2018 by Priyaj
• 58,090 points

Related Questions In AWS

0 votes
3 answers

What is CPU Credit Balance in EC2 for AWS?

When you use fewer CPU resources then ...READ MORE

answered Nov 30, 2018 in AWS by Aniket
2,126 views
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
• 58,090 points
1,559 views
+2 votes
1 answer

Notification in AWS when a new target becomes healthy ECS

You could probably use the HealthyHostCount metric to ...READ MORE

answered Aug 23, 2018 in AWS by Priyaj
• 58,090 points

edited Jun 8, 2020 by Sirajul 489 views
0 votes
1 answer

Using Shapely on AWS Lambda with Python 3

For some reason, the pip install of ...READ MORE

answered Oct 8, 2018 in AWS by Priyaj
• 58,090 points
2,600 views
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
• 58,090 points
434 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
• 58,090 points
12,332 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP