In this section, we will see how to create ELB and ASG using AWS CLI.
Creating an Elastic Load Balancer, launch configuration, and Auto Scaling Groups
Elastic Load Balancer
An ELB automatically distributes a load/traffic across multiple instances in a part of different availability zones (AZs). The member instances can be part of single AZ or multiple AZs. An ELB becomes the single point of contact for the DNS and the end users. An ELB also monitors the instance via a health check; if the instance is healthy, then only the requests will be routed to the instance.
As we have already created instances, we will create an ELB using CLI. The command to do so is as follows:
$ aws elb create-load-balancer --load-balancer-name my...