Use of ALBs route traffic to private services

0

I have the web app deployed in an ec2 in a private subnet. Can I use an ALB to route HTTP traffic to that ec2?

2 Answers
1
Accepted Answer

Yes, this is exactly what they are designed for.

If your services need to be accessed by the public Internet, you will need to place your ALB's on a Public Subnet. If its inter-nal use only, then the ALBs can be on any Subnet though preferably on a private subnet.

You will need Target Groups for your EC2s, Security Groups configuring, ALB Rules and if you require the traffic encrypted, then an SSL Cert in ACM assigned to the ALB. The EC2's are only accessible via the ALB and from other private hosts only.

https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-application-load-balancer.html

profile picture
EXPERT
answered a month ago
profile picture
EXPERT
Kallu
reviewed a month ago
profile picture
EXPERT
reviewed a month ago
0

I hope this is what you want.

How do I attach backend instances with private IP addresses to my internet-facing load balancer in ELB? https://repost.aws/knowledge-center/public-load-balancer-private-ec2

AWS
EXPERT
hyp
answered a month ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions