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 EC2 user data, as we used in the Getting ready section of the Creating a classic load balancer recipe of this chapter.
Add name tags (tags with Key set to Name) for the instances to identify them from the instances list. For the first instance, set Value to WebServer1. For the second instance, set Value to WebServer2.
Before proceeding, make sure that our instances are running and accessible directly from a browser. For additional security, after the ELB has been configured and tested, we can restrict access to these ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access