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:
- Buy servers and wait weeks for delivery.
- Put them in a room with power, cooling and a network.
- Hire people to look after them.
- 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.
| Idea | Own data center | Cloud |
|---|---|---|
| Up-front cost | Large (buy hardware) | None (pay as you go) |
| Time to get a server | Weeks | Minutes |
| Capacity | Guess, then live with it | Grow and shrink on demand |
| Who fixes the hardware | You | The provider |
| Where it is | One place | Many 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.
| Model | You manage | The provider manages | AWS example |
|---|---|---|---|
| IaaS (infrastructure) | OS, runtime, app, data | Hardware, network, virtualization | EC2 |
| PaaS (platform) | App and data | OS, runtime, scaling | Elastic Beanstalk, Lambda |
| SaaS (software) | Your settings and users | Everything else | WorkMail, 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:
| Area | Core services |
|---|---|
| Compute | EC2, Lambda, ECS, EKS |
| Storage | S3, EBS, EFS |
| Database | RDS, Aurora, DynamoDB |
| Network | VPC, Route 53, CloudFront, ELB |
| Security | IAM, KMS, Secrets Manager |
| Operations | CloudWatch, 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:
| Factor | Why it matters |
|---|---|
| Law and rules | Some data must stay in a country or area (for example, GDPR in the EU). |
| Latency | Pick a Region close to your users. |
| Services | New services appear in some Regions first. |
| Price | The 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 citiesSeeing 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 textap-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-2aws ec2 describe-availability-zones --region eu-west-1 \ --query "AvailabilityZones[].[ZoneName,ZoneId,State]" --output table-------------------------------------| DescribeAvailabilityZones |+-------------+-------------+-------+| eu-west-1a | euw1-az3 | available || eu-west-1b | euw1-az1 | available || eu-west-1c | euw1-az2 | available |+-------------+-------------+-------+Global, regional and zonal services
Not every service lives at the same level. This matters when you plan for failure.
| Level | Meaning | Examples |
|---|---|---|
| Global | One setup for the whole account | IAM, Route 53, CloudFront, Organizations |
| Regional | Lives in one Region, copies across its AZs | S3 (buckets), DynamoDB, Lambda, VPC |
| Zonal | Lives in one AZ | EC2 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:
- Pay as you go. You are charged for what you use, often by the second or hour.
- Pay less when you commit. Commit to steady use for one or three years and get a discount (Savings Plans, Reserved Instances).
- 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 for | You are responsible for |
|---|---|
| Security OF the cloud: buildings, hardware, network, hypervisor, managed service software | Security 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.
| Pillar | Question it asks |
|---|---|
| Operational excellence | Can we run and improve it? |
| Security | Is it protected? |
| Reliability | Does it recover from failure? |
| Performance efficiency | Do we use resources well? |
| Cost optimization | Do we avoid waste? |
| Sustainability | Is 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-1is 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
- Name two reasons to pick one Region over another.
- Why does AWS recommend using at least two Availability Zones?
- Is an EBS volume global, regional or zonal? What about an S3 bucket?
- Who patches the operating system on an EC2 instance?
CHECK YOUR UNDERSTANDING
3 quick questions
1. Which statement about Availability Zones is correct?
2. Which design gives the best protection from one data center failing?
3. A company says: AWS secures everything, so our S3 bucket cannot leak. What is wrong with this?