**What is AWS Global Accelerator?
AWS Global Accelerator is a service that helps your users access your application faster and more reliably, no matter where they are in the world.
It works by:
Giving you static IP addresses
Routing users through AWS’s global network
Sending each user to the nearest and healthiest AWS region
🛠️ What We’ll Do
In this hands-on tutorial, we will:
Launch two EC2 instances (web servers) in different regions (US and Europe)
Set up a basic website on each server
Create an AWS Global Accelerator to route traffic to those servers
Test how it works
🔧 Step 1: Launch EC2 Instances
Go to the AWS Console → EC2 → Launch Instance
Choose:
Amazon Linux or Ubuntu (any basic Linux OS)
Instance type: t2.micro (Free Tier eligible)
Region 1: US East (N. Virginia)
Region 2: Europe (Ireland)
After launching, connect to both instances using SSH.
Install NGINX web server on both:
bash
Copy
Edit
sudo apt update
sudo apt install nginx -y
Test in browser:
Open the public IP of each EC2 instance. You should see the NGINX welcome page.
⚙️ Step 2: Create Global Accelerator
Go to AWS Console → Search for “Global Accelerator”
Click Create Accelerator
Give a name like my-web-accelerator
Add a Listener:
Protocol: HTTP
Port: 80
Add two Endpoint Groups:
One for each region (US and EU)
In each group, add your EC2 instance as an endpoint
Once done, AWS will give you 2 static IPs.
🌍 Step 3: Test Global Routing
Now, try opening the static IP in your browser.
AWS will automatically route the user to the closest EC2 instance
If one region goes down, traffic is sent to the other
You can also test from different locations using VPN or online tools like ping.pe to see which server responds.
**