Setting Up EC2 Instances and an Application Load Balancer for Route 53
In this lesson, we walked through the process of deploying three EC2 instances across different AWS regions and setting up an Application Load Balancer (ALB) in preparation for Route 53 integration. Below is a structured breakdown of the steps taken.
1. Creating EC2 Instances in Different Regions
To simulate a distributed architecture, three EC2 instances were launched in separate AWS regions.
Steps to Launch an EC2 Instance
- Choose AMI: Select Amazon Linux 2 as the operating system.
- Instance Type: Use a T2 Micro instance.
- Key Pair: No key pair was required (using EC2 Instance Connect instead).
- Network Settings:
- Create a security group allowing SSH and HTTP from anywhere.
- User Data Script:
- This script prints “Hello World” along with the availability zone (AZ) in which the instance is launched.
- The script is copied and pasted into the Advanced Details → User Data section.
Launched EC2 Instances in Three Regions
- Frankfurt (eu-central-1)
- Northern Virginia (us-east-1)
- Singapore (ap-southeast-1)
Each instance was successfully launched and verified using its public IP via HTTP.
2. Deploying an Application Load Balancer (ALB)
An Application Load Balancer (ALB) was set up in Frankfurt (eu-central-1) to distribute traffic.
Steps to Create the ALB