7.6 Load Balancers & Custom VPCs
Steps:
Go to EC2 and go to ELB to create a ELB.
Usually, we choose Application ELB, unless you have to get ultra high performance or you need static IP addresses with your application then you want to a Network ELB. Let's go in with a application ELB.
Give it a name. Listeners contain HTTP on port 80. For AZs, choose the customized VPC you have created. You need to specify the AZs to enable for your load balancer. The load balancer routes traffic to the targets in these AZs only. You can specify only one subnet per AZ. You must specify subnets from at least two AZs to increase the availability of your load balancer. So we have to place our load balancer into 2 public subnets, but we only have one public now. So bear in mind as a design consideration, when you are creating your VPC, you need your Application ELB to always be in at least two availability zones and those two AZs must be public otherwise you cannot set it up.
Last updated
Was this helpful?