Attach Private load balancer to EC2

0

Hi AWS, I need to attach a private load balancer to my EC2 server. I have to create an internal load balancer for it if I am not wrong i.e. the Classic Load Balancer and is there anything which I need to take care of while creating it.

My requirement is Gateway communicate with Broker over Public LB and HES will communicate with broker internally over private LB. All the EC2 instance does not have public internet.

profile picture
已提問 3 個月前檢視次數 206 次
1 個回答
0

Hi, For your scenario, where you have a Gateway communicating with a Broker over a public Load Balancer (LB) and a HES (possibly a backend service) communicating with the Broker internally over a private LB, you will indeed need to set up two separate load balancers: one public and one private. The public LB will route external traffic to your Broker, while the private LB will facilitate internal communication between your HES and the Broker without exposing it to the public internet. You've mentioned using a Classic Load Balancer, but it's also worth considering newer types of load balancers offered by AWS, such as the Application Load Balancer (ALB) and Network Load Balancer (NLB), depending on your requirements. I recommend using ALB and you can very much create the internal ALB as shown in the screenshot below: Enter image description here Below are the remaining considerations:

  • Create Internal Load Balancer: Ensure to select the internal option during setup, choosing the appropriate VPC and subnets without internet access.
  • Configure Security: Adjust security groups to allow necessary traffic between your HES and the load balancer, and ensure NACLs permit the same.
  • Setup Target Groups: Create and configure target groups (for ALB and NLB), registering your EC2 instances as targets.
  • Implement Health Checks: Configure health checks to monitor the availability of your EC2 instances and ensure traffic is only routed to healthy instances.

Hope this is helpful. Please accept as answer if it helps.

已回答 3 個月前
profile pictureAWS
專家
kentrad
已審閱 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南