Skip to main content
This guide demonstrates a simple Multi-AZ deployment using Amazon EC2 instance launches. The objective is to place two web server instances across different Availability Zones (AZs) in the same AWS region to improve availability and resilience. Start by opening the Amazon EC2 console: type “EC2” in the AWS search bar and navigate to the EC2 dashboard. From there go to Instances → Launch instances.
A screenshot of the Amazon Web Services EC2 dashboard (US East - Ohio) showing the Resources summary with counts for Instances, Security groups, Elastic IPs, load balancers, and other EC2 items. The left sidebar shows EC2 navigation items like Dashboard and Instances.

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 show t2.micro or t4g.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.
A screenshot of the AWS EC2 "Launch an instance" console showing the Quick Start AMI selection with options like Amazon Linux, macOS, Ubuntu, Windows, Red Hat, SUSE, and Debian. The page also displays details for an Amazon Linux AMI and the AWS navigation bar at the top.
Choose a free-tier eligible instance type such as t3.micro, then continue the launch flow.
A screenshot of the AWS EC2 "Launch an instance" console showing the "Instance type" section with t3.micro selected, pricing details, and a "Free tier eligible" label. The lower part of the page also shows the beginning of the "Key pair (login)" section.

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-2b so 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.
During the launch you will see a progress indicator—wait for this to finish before proceeding.
A screenshot of the AWS EC2 "Launch an instance" console showing a blue progress bar labeled "Launch initiation" at about 80%. The page displays the message asking the user to wait and not close the browser while the instance launches.

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-2a and us-east-2b respectively.
A screenshot of the AWS EC2 Instances console showing two running instances (WebServerB and WebServerA), both t3.micro with 3/3 status checks passed. The page includes filters, instance action buttons, and region/account info in the header.

Summary (Demo configuration)

  • 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.

Watch Video