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 回答
1
已接受的回答

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
专家
已回答 2 个月前
profile picture
专家
Kallu
已审核 2 个月前
profile picture
专家
已审核 2 个月前
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
专家
hyp
已回答 2 个月前
profile picture
专家
已审核 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则