Classic load balancers are previous generation load balancers. AWS's recommendation is to use one of the newer load balancers, namely, an application load balancer or a network load balancer. However, you may still want to know about classic load balancers for older projects and when we need to use the EC2-classic model.
Creating a classic load balancer
Getting ready
We need to create two EC2 instances to complete this recipe. We can do this by following the Using EC2 user data to launch an instance with a web server recipe in Chapter 6, Working with EC2 Instances, but using the following EC2 user data commands:
#!/bin/bash
sudo su
yum update -y
yum install -y httpd
systemctl start httpd.service
systemctl enable httpd.service...