How To Create An Application Load Balancer Using AWS CLI

How To Create An Application Load Balancer Using AWS CLI

How to create an Application Load Balancer Using AWS CLI

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post we have discussed Application Load Balancer concepts.

https://cloudaffaire.com/application-load-balancer-alb/

In this blog post we will create an Application Load Balancer using AWS CLI.

How To Create An Application Load Balancer Using AWS CLI

How to create an Application Load Balancer using AWS CLI:

Step 1: Create a custom VPC with two public subnets, and security group to allow http access in port 80.

Step 2: Create two EC2 instance that will act as a target for your application load balancer.

Step 3: Create your Application Load Balancer

Observation: You will get a response from both instance one and instance two as your curl/browser request is forwarded by ALB to target backends.

Step 4: Cleanup

Hope you have enjoyed this article, In the next blog post, we will discuss different advance routing options available in Application Load Balancer.

All the public cloud providers are changing the console user interface rapidly and due to this some of the screenshots used in our previous AWS blogs are no longer relevant. Hence, we have decided that from now onwards most of the demo will be done programmatically. Let us know your feedback on this in the comment section.

To get more details on AWS ELB, please refer below AWS documentation

https://docs.aws.amazon.com/elasticloadbalancing/index.html

 

Leave a Reply

Close Menu