In this section, we will understand two things to configure, Load Balancing and Auto Scaling. We will continue with the same example we discussed in Chapter 5, CI/CD in AWS Part 2 – CodeDeploy, CodePipeline, and CodeStar and update the example with Auto Scaling Group. We will stop the instance and see the behavior in the EC2 console, and Auto Scaling Group should automatically launch the instances with a predefined script.
Now, let's see how to create and configure Load Balancing. Load Balancing is divided into two parts – Load Balancers and Target Groups.
As we already discussed, Load Balancers come in three types. You can choose whichever Load Balancer you need:
In this example, ...