
Create Web Server A (us-east-2a)
Follow these steps to launch the first instance:- Name: set the Name tag to “Web Server A”.
- AMI: use the default Amazon Linux AMI (free tier eligible).
- Instance type: choose a free-tier eligible type such as
t3.micro(some accounts/regions may showt2.microort4g.micro). - Key pair (login): for this demo we proceed without a key pair.
Do not omit a key pair in production. Always configure secure access (key pairs, Systems Manager Session Manager, or other secure methods) when launching instances.
- Network settings: click Edit and explicitly set the Availability Zone by choosing the subnet or AZ. For Web Server A select
us-east-2a. - Security group: keep or reuse an appropriate security group (ensure ports like HTTP 80 are allowed if hosting a web server).
- Review and Launch: proceed and wait for the launch initiation to complete.

t3.micro, then continue the launch flow.

Create Web Server B (us-east-2b)
Repeat the same process for the second instance, but place it in a different AZ:- Name: set the Name tag to “Web Server B”.
- AMI & instance type: use the same AMI and
t3.micro. - Key pair: proceed without a key pair for the demo (again, not recommended for production).
- Network settings: Edit and set the AZ/subnet to
us-east-2bso the second instance is in a different AZ within the same region (US East - Ohio). - Security group: reuse the same security group or select one that allows required traffic (HTTP/HTTPS).
- Launch and wait until initialization completes.

Verify both instances
After both instances are running, open the Instances list and confirm:- Both “Web Server A” and “Web Server B” are in the Running state.
- Status checks have passed.
- The Availability Zone column shows
us-east-2aandus-east-2brespectively.

Summary (Demo configuration)
Key points and recommended next steps
- Distributing instances across multiple AZs reduces risk from a single-AZ outage and increases availability and resilience.
- This demo used manual AZ selection to explicitly demonstrate Multi-AZ placement. For production workloads, automate distribution using an Auto Scaling Group spanning multiple subnets (each mapped to a different AZ).
- To provide fault-tolerant traffic distribution, add an Elastic Load Balancer (ELB) in front of these instances and use Auto Scaling to maintain desired capacity across AZs.
- Implement proper security and access controls: use key pairs or AWS Systems Manager Session Manager, IAM instance profiles/roles, secure security group rules, and monitoring/alerting.
For production deployments, avoid launching instances without key pairs and use proper AWS - IAM roles, security group rules, logging/monitoring, and automation (Auto Scaling + ELB) to ensure secure, highly available applications.
Useful references
- Amazon EC2 Console
- AWS documentation: Auto Scaling, Elastic Load Balancing, and Multi-AZ architectures for high availability and resilience.