Creating an Application Load Balancer for a VPC
In this blogpost, we'll see how to create a application load balancer for a VPC.
Step 1: Create a new VPC.
Step 2: We create four new subnets "Private Subnet A", "Private Subnet B", "Public Subnet A", "Public Subnet B".
Step 3: We create two HTTP server EC2 instances "HTTPServerOne" , "HTTPServerTwo" in subnets "PublicSubnetA" and "PublicSubnetB" respectively.
Note: While creating the instances, you'd have to security group with rules like this!
Step 4: Connect to the instances and run the following commands
and this would open the text editor. In there, type in your HTML code and close it.
Finally, you should be able to write your processed HTML code when you access the EC2 instance by its public address.
Step 5: Now, let's create an Application Load Balancer (ALB). To do that, search for "Load Balancers". Click on it. Then click on "Create Load Balancer" and choose Application Load Balancer (ALB).
Step 6:





Comments
Post a Comment