Skip to content
$ lynuxpro
← AWS

LESSON 1 OF 35 · BEGINNER · 18 MIN

Cloud computing and AWS global infrastructure

Free previewLesson 1 of the 2 free lessons in this Pro course.Unlock all 35

HOW IT WORKSHow AWS is built around the world

pick a RegionAWS CloudRegioneu-west-1
1/5

AWS is split into Regions. Each Region is a separate area of the world.

Before you click anything in AWS, you need a clear picture of what "the cloud" is and how AWS is built. This lesson explains the ideas in plain words: what cloud computing means, how AWS is spread around the world, how you are billed, and who is responsible for what. Everything later in the course sits on top of this.

In simple words

  • Cloud computing: renting computers, storage and services over the internet and paying only for what you use, instead of buying your own hardware.
  • IaaS / PaaS / SaaS: how much the provider manages: raw servers (IaaS), a platform for your code (PaaS), or finished software (SaaS).
  • Region: a geographic area with its own AWS data centres, such as ap-south-1 (Mumbai).
  • Availability Zone (AZ): one or more separate data centres inside a region. Using several AZs keeps you running if one fails.
  • Edge location: a smaller site close to users, used by CloudFront and Route 53 for speed.

What is cloud computing?

Cloud computing means renting computers, storage and software over the internet instead of buying and running your own. You pay for what you use, and you can start or stop in minutes.

Before the cloud, a company that wanted a website had to:

  1. Buy servers and wait weeks for delivery.
  2. Put them in a room with power, cooling and a network.
  3. Hire people to look after them.
  4. Guess how much capacity they would need, and pay for it all year, even when most of it sat idle.

With the cloud, you ask for a server with an API call, use it for an hour, and pay for that hour.

IdeaOwn data centerCloud
Up-front costLarge (buy hardware)None (pay as you go)
Time to get a serverWeeksMinutes
CapacityGuess, then live with itGrow and shrink on demand
Who fixes the hardwareYouThe provider
Where it isOne placeMany places in the world

The six benefits you will hear about

AWS describes the benefits of the cloud like this:

  • Trade fixed cost for variable cost. You pay per use instead of buying in advance.
  • Economies of scale. AWS buys at huge scale, so each unit costs less.
  • Stop guessing capacity. Scale up for a busy day, scale down afterwards.
  • Speed and agility. A new environment takes minutes, not months.
  • Stop running data centers. Spend your time on your product.
  • Go global in minutes. Put your app close to users on other continents.

Service models: IaaS, PaaS and SaaS

Cloud services come at different levels. The higher the level, the less you manage.

ModelYou manageThe provider managesAWS example
IaaS (infrastructure)OS, runtime, app, dataHardware, network, virtualizationEC2
PaaS (platform)App and dataOS, runtime, scalingElastic Beanstalk, Lambda
SaaS (software)Your settings and usersEverything elseWorkMail, Amazon Connect

Think of pizza. IaaS is buying the ingredients and baking it yourself. PaaS is a pizza that arrives raw and you bake it. SaaS is a pizza delivered hot.

Deployment models

  • Public cloud: you use the provider's shared data centers. AWS, Azure and GCP are public clouds.
  • Private cloud: cloud-style tooling in your own data center.
  • Hybrid: a mix of your own data center and the cloud, joined by a network link.

Most companies end up hybrid for a while, because moving everything takes time.

What AWS is

Amazon Web Services (AWS) is the largest cloud provider. It started in 2006 with storage (S3) and servers (EC2). Today it has over 200 services. You do not need to learn them all. A small group does most of the work:

AreaCore services
ComputeEC2, Lambda, ECS, EKS
StorageS3, EBS, EFS
DatabaseRDS, Aurora, DynamoDB
NetworkVPC, Route 53, CloudFront, ELB
SecurityIAM, KMS, Secrets Manager
OperationsCloudWatch, CloudTrail, Systems Manager

This course teaches these in a sensible order.

The global infrastructure

AWS is built from a few pieces. Learn these words, because every design decision uses them.

Regions

A Region is a geographic area, such as eu-west-1 (Ireland) or us-east-1 (N. Virginia). Each Region is completely separate from the others. Data you store in one Region stays there unless you copy it.

How to choose a Region:

FactorWhy it matters
Law and rulesSome data must stay in a country or area (for example, GDPR in the EU).
LatencyPick a Region close to your users.
ServicesNew services appear in some Regions first.
PriceThe same service costs different amounts in different Regions.

Availability Zones

Each Region has several Availability Zones (AZs), usually three or more. An AZ is one or more data centers with their own power, cooling and network. AZs in a Region are close enough for fast links (single-digit milliseconds) but far enough apart that one flood or power cut does not hit them all.

AZ names look like eu-west-1a, eu-west-1b, eu-west-1c. Note: eu-west-1a in your account may be a different building from eu-west-1a in another account. AWS shuffles the names so that everyone does not pick "a". The fixed id is the AZ ID, such as euw1-az1.

The key rule of AWS design: spread across at least two AZs. If one AZ fails, the app keeps running in the others.

Edge locations and Local Zones

  • Edge locations are small sites in hundreds of cities. CloudFront (the content delivery network) and Route 53 use them to answer users from a nearby place.
  • Local Zones put some compute and storage close to a big city for very low latency.
  • Wavelength puts compute inside 5G networks, and Outposts puts AWS hardware in your own building.

Picture of it all

AWS Cloud ├── Region: eu-west-1 (Ireland) │    ├── AZ eu-west-1a   (data centers) │    ├── AZ eu-west-1b   (data centers) │    └── AZ eu-west-1c   (data centers) ├── Region: us-east-1 (N. Virginia) │    └── AZ ... AZ ... AZ ... └── Edge locations in hundreds of cities
OUTPUTterminalutf-8 · 8L

Seeing it with the CLI

You will install the CLI in lesson 03, but here is a preview. These commands list real facts about the infrastructure:

aws ec2 describe-regions --query "Regions[].RegionName" --output text
SHELLbashutf-8 · 1L
ap-south-1 eu-north-1 eu-west-3 eu-west-2 eu-west-1 ap-northeast-3 ap-northeast-2 ap-northeast-1 ca-central-1 sa-east-1 ap-southeast-1 ap-southeast-2 eu-central-1 us-east-1 us-east-2 us-west-1 us-west-2
OUTPUTterminalutf-8 · 1L
aws ec2 describe-availability-zones --region eu-west-1 \  --query "AvailabilityZones[].[ZoneName,ZoneId,State]" --output table
SHELLbashutf-8 · 2L
-------------------------------------|     DescribeAvailabilityZones     |+-------------+-------------+-------+|  eu-west-1a |  euw1-az3   | available ||  eu-west-1b |  euw1-az1   | available ||  eu-west-1c |  euw1-az2   | available |+-------------+-------------+-------+
OUTPUTterminalutf-8 · 7L

Global, regional and zonal services

Not every service lives at the same level. This matters when you plan for failure.

LevelMeaningExamples
GlobalOne setup for the whole accountIAM, Route 53, CloudFront, Organizations
RegionalLives in one Region, copies across its AZsS3 (buckets), DynamoDB, Lambda, VPC
ZonalLives in one AZEC2 instances, EBS volumes, subnets

If an EBS volume lives in one AZ and that AZ fails, the volume is unavailable. A regional service such as S3 stores copies in several AZs for you.

How you pay

AWS billing has three basic ideas:

  1. Pay as you go. You are charged for what you use, often by the second or hour.
  2. Pay less when you commit. Commit to steady use for one or three years and get a discount (Savings Plans, Reserved Instances).
  3. Pay less as you use more. Some services, such as S3, have lower prices at higher volume.

Four things usually cost money: compute time, storage size, data leaving AWS (data transfer out), and requests. Data coming in from the internet is free. Data going out costs money.

The shared responsibility model

Security in AWS is split between AWS and you.

AWS is responsible forYou are responsible for
Security OF the cloud: buildings, hardware, network, hypervisor, managed service softwareSecurity IN the cloud: your data, who can access it, OS patches on EC2, firewall rules, encryption choices

An example: AWS makes sure nobody can walk into the data center and take a disk. You make sure your S3 bucket is not public. Many famous data leaks came from customers leaving a bucket open, not from AWS being hacked.

The line moves with the service. With EC2, you patch the OS. With RDS, AWS patches the database engine, but you still control who can connect. With Lambda, AWS manages even the server, and you only manage your code and permissions.

The Well-Architected pillars (a preview)

AWS publishes a framework with six pillars. You will use it in lesson 31.

PillarQuestion it asks
Operational excellenceCan we run and improve it?
SecurityIs it protected?
ReliabilityDoes it recover from failure?
Performance efficiencyDo we use resources well?
Cost optimizationDo we avoid waste?
SustainabilityIs the energy use low?

Common mistakes

  • Thinking the cloud is always cheaper. It is cheaper when you use it well, and turn things off. A forgotten large server costs money every hour.
  • Using one AZ. Everything works until that AZ has a problem.
  • Picking a Region by habit. us-east-1 is the default for many tutorials, but your users or laws may need another.
  • Forgetting data transfer costs. Moving data between Regions or out to the internet is billed.
  • Believing "AWS secures it all". Your settings are your job.

Summary

  • The cloud means renting computing on demand and paying for what you use.
  • IaaS, PaaS and SaaS differ in how much you manage.
  • A Region is a separate geographic area. An Availability Zone is a data center group inside it. Edge locations serve content near users.
  • Spread across at least two AZs for high availability.
  • Services are global, regional or zonal. Know which is which.
  • Data out costs money. Data in is free.
  • Under the shared responsibility model, AWS secures the cloud and you secure what you put in it.

Check yourself

  1. Name two reasons to pick one Region over another.
  2. Why does AWS recommend using at least two Availability Zones?
  3. Is an EBS volume global, regional or zonal? What about an S3 bucket?
  4. Who patches the operating system on an EC2 instance?

CHECK YOUR UNDERSTANDING

3 quick questions

  1. 1. Which statement about Availability Zones is correct?

  2. 2. Which design gives the best protection from one data center failing?

  3. 3. A company says: AWS secures everything, so our S3 bucket cannot leak. What is wrong with this?