Stop 01 · Cloud & AWS FoundationsTopics · 5/8

AWS Regions, Availability Zones & Edge Locations

Part of the AWS Roadmap

In short

Where your app runs decides how fast it feels, what it costs and whether it survives a power cut. AWS gives you three layers of location to choose from: Regions, Availability Zones and edge locations.

A Region is a geographic area such as Mumbai (ap-south-1) or Hyderabad (ap-south-2). Each Region has multiple Availability Zones, which are isolated groups of data centres. Edge locations are used by services like CloudFront and Route 53 to serve users with lower latency.

The jaadu stands on a city map table placing three small warehouse models in different neighbourhoods and tiny kiosk models near houses at the edges.

Think of it like this

A supermarket chain

A chain picks a city to operate in (Region). In that city it runs several warehouses in different neighbourhoods with their own power lines (Availability Zones), so one flooded street does not stop deliveries. Small pickup kiosks near your home (edge locations) hand over popular items quickly.

Watch it happen

From the global network down to one data centre

AWS global network
Region: Mumbai (ap-south-1)
Region: Hyderabad (ap-south-2)
AZ ap-south-1a
AZ ap-south-1b
AZ ap-south-1c
One or more data centres
Edge locations (CloudFront, Route 53)

1/5AWS runs a global private network that connects every Region.

The big ideas

What you need to know

Choose a Region on purpose

Pick by user location (latency), data residency rules, service availability and price. Prices differ slightly between Regions.

Spread across AZs

Run at least two copies of your app in different AZs. If one AZ has a problem, the other keeps serving.

AZ names vs AZ IDs

ap-south-1a in your account may be a different physical AZ from ap-south-1a in another account. AZ IDs like aps1-az1 are the same everywhere.

Edge is for delivery

You do not run servers at edge locations. Services like CloudFront use them to cache and deliver content faster.

See it in code

Walk through the code

bash
1# Every Region enabled for this account2aws ec2 describe-regions --output table3 4# Availability Zones in Mumbai, with their IDs5aws ec2 describe-availability-zones \6  --region ap-south-1 \7  --query "AvailabilityZones[].[ZoneName,ZoneId,State]" \8  --output table

1/3Shows Region codes such as ap-south-1 and their endpoints.

List Regions, then see the AZ names and the stable AZ IDs behind them in the Mumbai Region.

Save yourself the pain

Common mistakes

Oops

Running a production app in a single Availability Zone.

Do this instead

Place instances, subnets and databases in at least two AZs so one AZ failing does not take the app down.

Oops

Assuming every service and instance type exists in every Region.

Do this instead

Check the AWS Regional Services list before choosing. New features often reach some Regions first.

Oops

Believing an AZ is the same thing as a Region.

Do this instead

A Region contains several AZs. Multi-AZ protects against a data centre problem, multi-Region protects against a whole Region problem.

Your mission

Pick a home for your app

~15 min

Quick check

Your app must keep running if one data centre loses power. What is the simplest AWS design for that?

Go deeper

  1. 1Open the AWS global infrastructure page and find the Regions in India.
  2. 2Explain why spreading an app across two Availability Zones protects it from a single data centre failure.
  3. 3Learn that most services are Regional, while IAM and Route 53 are global.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge