What is AWS? The Global Infrastructure, from Regions to Edge Locations
What cloud computing is, how AWS is spread across the world in Regions, Availability Zones and edge locations, how to pick a Region, and who is responsible for what.
- Key idea
- Definition
- When to use
- Caution
In this article
This is the first step of Learn AWS from Scratch. Before launching a server or storing a single file, you need to understand the ground you're standing on: what "cloud" means, where your services actually run, and who is responsible for protecting them. Every later part builds on what we cover here.
You don't need any previous AWS experience, just the basics of computers and the internet.
Cloud computing in brief
Instead of buying servers, putting them in a room and paying for them up front, you rent what you need from a cloud provider, when you need it, and pay for what you use. AWS (Amazon Web Services) is one of the largest cloud providers in the world, and opened its services to the public in 2006.
What sets the cloud apart from a server in your room:
- On demand: launch a server in minutes and switch it off when you're done.
- Pay for what you use: no hardware to buy up front. You pay by the hour, by the second or per request, depending on the service.
- Elastic: add resources when traffic peaks and remove them when it's quiet, without touching hardware.
- Global reach: run your application close to your users, wherever they are.
Service models
Not every cloud service gives you the same level of control. The further down the table, the less you manage yourself:
| Model | What you manage | Example on AWS |
|---|---|---|
| IaaS: infrastructure as a service | Operating system, software and data | EC2 (virtual servers) |
| PaaS: platform as a service | Your code and data only | Elastic Beanstalk |
| FaaS: functions without servers | The function itself | Lambda |
| SaaS: software as a service | Just your use of the software | Any ready-made app you open in a browser |
No need to memorize the table. What matters is that services differ in how much work they leave to you, and that makes a big difference once we get to responsibility.
The AWS global infrastructure
AWS isn't one data center. It's a huge network arranged in three layers you need to understand before any service: Regions, Availability Zones and edge locations.
Regions
A Region is a geographic location containing a group of AWS data centers. Each one has a name and a code you'll see everywhere:
us-east-1: N. Virginia (USA)eu-central-1: Frankfurt (Germany)me-south-1: Bahrainme-central-1: UAE
Regions are independent of each other. A server you create in one Region stays there, and your data never leaves it unless you move it. Most AWS services are regional: you choose the Region before you create anything.
Availability Zones
Each Region is divided into several Availability Zones (AZs), and newer Regions have at least three. An Availability Zone is one or more data centers with their own power, cooling and networking.
Availability Zones are far enough apart that a disaster in one (a fire, a power cut, a flood) doesn't reach the others, and close enough to be linked by a very fast network. Their names are the Region code followed by a letter: me-central-1a, me-central-1b and me-central-1c.
The key idea: if you run your application in more than one Availability Zone, losing one of them doesn't take your application down. That's the foundation of high availability, which comes up again and again in this series.
Edge locations
Edge locations are AWS sites in many cities around the world, far more numerous than Regions. You don't run your servers there. Services such as CloudFront (the content delivery network) and Route 53 (DNS) use them to serve each user from the nearest point, so content arrives faster.
For example: your site is hosted in Frankfurt and a visitor is in Riyadh. Instead of every image travelling the full distance, CloudFront keeps a copy at the edge location nearest the visitor and serves it from there.
Closer still: Local Zones, Wavelength and Outposts
Some applications need to run closer to users than any Region. AWS has three ways of doing that:
| Option | Where it runs | Good for |
|---|---|---|
| Local Zones | AWS sites in large cities, attached to a Region | Very low latency for users in that city |
| Wavelength Zones | Inside telecom carriers' 5G networks | Ultra-low latency to phones and 5G devices |
| AWS Outposts | AWS hardware in your own data center | Data or systems that must stay on your site |
Global and regional services
Since most services are regional, you need to know which ones are tied to a Region and which aren't:
| Type | Examples | What it means for you |
|---|---|---|
| Global | IAM, Route 53, CloudFront | The same settings apply across all Regions |
| Regional | EC2, Lambda, RDS, and most services | You pick a Region, and the resource lives only there |
S3 is a special case: a bucket is created in a specific Region and its data stays there, but its name must be unique across all of AWS.
How to choose a Region
When you start a new project, four things decide the Region:
- Regulation and compliance: some organizations and laws require data to stay within a specific country or area.
- Proximity to users: the closer the Region is to your users, the lower the latency and the faster your application feels.
- Service availability: not every service and feature exists in every Region. New services usually launch in a few Regions first.
- Cost: prices for the same service vary between Regions.
If your users are in the Gulf, me-central-1 (UAE) or me-south-1 (Bahrain) gives you the lowest latency, but check that the services you need are available there. For learning and experiments, many people use us-east-1, which offers almost every service and is usually among the cheapest.
The shared responsibility model
Security on AWS is split between you and AWS. In short: AWS protects the cloud itself, and you protect what you put in it.
| AWS is responsible for | You are responsible for |
|---|---|
| Buildings, data centers and their physical security | Your data and who can reach it |
| Hardware and the global network | Users and permissions (IAM) |
| The virtualization layer under your servers | Your server's operating system and its updates (on EC2) |
| Running the managed services themselves | Network settings, firewalls and encryption |
The more managed a service is, the less you're responsible for. On EC2 you own the whole operating system; see what that means in practice in Setting Up a Secure Linux Server from Scratch. With a service like Lambda, AWS takes care of the servers and operating system, and you look after your code and its permissions.
How you work with AWS
There are four ways in, all reaching the same services:
- Management Console: the web interface, the easiest place to start.
- AWS CLI: commands in a terminal, ideal for automation and scripts.
- SDKs: libraries for languages such as Python, JavaScript, Java and Go, used inside your application.
- CloudShell: a terminal inside the console with the CLI installed and already signed in as you. The quickest way to try commands with no setup.
Try it now. Open CloudShell from the terminal icon at the top of the console and run:
# Who am I? Shows the account number and the identity you're using
aws sts get-caller-identity
# The Regions enabled in your account
aws ec2 describe-regions --query "Regions[].RegionName" --output table
# The Availability Zones in Frankfurt, with each one's ID
aws ec2 describe-availability-zones --region eu-central-1 \
--query "AvailabilityZones[].[ZoneName,ZoneId]" --output table
The last command prints a table with each Availability Zone's name (eu-central-1a…) and its ID (euc1-az2…), which is the name-versus-ID difference explained above.
Before you continue: protect your account and your bill
The biggest risk to a new AWS account isn't only being hacked, it's also a bill you didn't expect. Do these from day one:
AWS gives new accounts limited free usage, but the terms change over time. Check the official free tier page before running any service, and don't leave resources running once you've finished experimenting.
Summary
- The cloud means resources on demand: you pay for what you use and scale up or down as needed.
- A Region is an independent geographic location, and most services live inside a single Region.
- An Availability Zone is one or more isolated data centers. Spreading across several protects your application from failures.
- Edge locations bring content closer to users through CloudFront and Route 53.
- You choose a Region by regulation, proximity, service availability and cost.
- AWS protects the cloud; you protect what's inside it.
Test yourself
Before you move on, try these questions to check you've got this part. Each one is a practical scenario, and the explanation appears once you answer.
Question 1 of 6
A clinic runs its booking application on one EC2 server in me-central-1a. A power failure in that data center took the application down for hours. The clinic wants the application to survive the loss of one data center, and doesn't need protection from losing a whole Region. Which design meets this at the lowest cost?
Show the answer
Correct answer: C
Availability Zones are isolated from each other, so a failure in one doesn't reach the other, and the load balancer sends visitors to the healthy server. This is the cheapest option that does the job.
- A: A larger server stays in the same place, so the same failure stops it.
- B: This protects against losing a whole Region, which is more than the clinic needs, and it costs more.
- D: CloudFront caches content, but making a booking still needs the server.
Review: Availability Zones in this part, and Regions and Zones in the AWS docs.
Question 2 of 6
A German insurance company must keep its customers' data inside the European Union by law, and most of its customers are in Germany. A developer suggests us-east-1, because it's cheaper and has a new service the team wants to try. What should the company do?
Show the answer
Correct answer: A
When data is subject to local regulations, meeting them comes before latency, cost and available services. After that, you compare the Regions that remain.
- B: CloudFront speeds up delivery, but the data itself stays in the US.
- C: The production data is still outside the EU, and a backup doesn't change that.
- D: Encryption protects the data, but it doesn't change where the data is.
Review: How to choose a Region in this part, and What to consider when selecting a Region on the AWS blog.
Question 3 of 6
An online course site runs on a server in eu-central-1. Its images and videos load slowly for students in Riyadh and Jakarta, while monitoring shows the server's CPU and memory are far from their limits. Which solution improves delivery to these students with the least operational overhead?
Show the answer
Correct answer: D
The problem is distance, not the server's capacity. CloudFront caches files at the edge location nearest each student, with nothing new for you to run.
- A: The server isn't under pressure, and the distance stays the same.
- B: This improves availability, but the students are just as far away.
- C: This would work, but it has the most to set up, sync and pay for.
Review: Edge locations in this part, and What is Amazon CloudFront? in the AWS docs.
Question 4 of 6
A company runs its application on EC2 servers, and its security team is listing what the company itself must handle under the shared responsibility model. Which two tasks belong to the company? (Choose two.)
Show the answer
Correct answer: B + E
On EC2, the operating system inside the server and the firewall rules around it are yours. Everything from the host and virtualization layer down to the building belongs to AWS.
- A: Hardware belongs to AWS.
- C: The virtualization layer belongs to AWS.
- D: Physical security belongs to AWS.
Review: The shared responsibility model in this part, and the AWS page on the model.
Question 5 of 6
Two AWS accounts in one company each have a subnet in us-east-1a. A team wants to know whether the two subnets are in the same physical location, to keep heavy traffic between them inside one Availability Zone. What should the team compare?
Show the answer
Correct answer: B
AWS maps Availability Zone names to physical locations differently for each account. An ID such as use1-az1 means the same location in every account.
- A:
us-east-1ain one account may not be the same place asus-east-1ain another. - C: This only confirms the same Region, which they already know.
- D: Edge locations serve content to users, and they don't identify where a subnet is.
Review: Availability Zones in this part, and Availability Zone IDs in the AWS docs.
Question 6 of 6
A company is building a cloud-gaming app for phones on 5G networks, and every millisecond between the phone and the server counts. Where should it run the servers?
Show the answer
Correct answer: C
Wavelength Zones sit inside telecom carriers' 5G networks, which keeps latency to phones very low.
- A: This is farther from the phone than the carrier's own network.
- B: This puts AWS hardware on your own site, which isn't near your players' phones.
- D: You don't run your servers there, and they serve stored content.
Review: Closer still: Local Zones, Wavelength and Outposts in this part, and Regions and Zones in the AWS docs.
If you want to see these ideas in practice, there's a hands-on guide: How to create a server on AWS.
In part two we get into identity and permissions (IAM): users, groups and policies, and how to actually secure your account.