Before we start, we need to spin up two instances running Amazon Linux and put them in two availability zones. This way, we will demonstrate how to make an application highly available:
- We can follow the procedure to build an EC2 instance from the Building an EC2 instance in AWS section in Chapter 5, Managing Servers on AWS with Elastic Compute Cloud. Once created, we should see two instances running in two availability zones:
- We will also create a new security group to open port 80 on those instances, as we will be serving a simple HTTP site to show the server's name in the response:
- Choose Create Security Group, specify ...