Lesson 1 of 30Core services
Cloud Basics
Explain what the cloud is, how AWS is laid out around the world, and set up an account safely.
Almost every backend job posting lists AWS, and almost every team that runs on it learned the same lessons the hard way: a leaked key, a surprise bill, an outage in one data center. This lesson gives you the map (what the cloud is, where AWS physically lives, who is responsible for what) and the five-minute setup that prevents the classic disasters.
What "the cloud" actually is
The cloud is someone else's computers, rented by the second through an API. Instead of buying a server, waiting weeks for it to arrive and racking it in a room, you call an API (or click a button) and a virtual server exists 40 seconds later. When you are done, you delete it and stop paying.
Three things make that different from renting a server the old way:
- On demand. No contracts, no tickets. One API call creates a database.
- Elastic. Scale from 1 server to 100 for a sales spike, then back down.
- Pay as you go. You pay per second, per request or per gigabyte, not per year.
AWS (Amazon Web Services) is the largest cloud provider, with over 200 services. You do not need most of them. A typical web app uses about ten, and this track covers those ten.
IaaS, PaaS, SaaS and serverless
Cloud services differ in how much AWS manages for you. The more it manages, the less you can tweak and the less you have to babysit.
| Model | You rent | You still manage | AWS example |
|---|---|---|---|
| IaaS (infrastructure) | Virtual machines, disks, networks | OS patches, runtime, app, scaling | EC2 |
| PaaS (platform) | A place to run your app | Your code and config | Elastic Beanstalk, App Runner |
| Serverless | Functions and managed services billed per use | Your code | Lambda, DynamoDB, S3 |
| SaaS (software) | A finished product | Your data and users | Amazon WorkMail, or Gmail elsewhere |
Serverless does not mean there are no servers. It means you never see them: no instances to patch, it scales to zero, and you pay per request.
Regions, availability zones and edge locations
AWS is physically split up so that one fire, flood or power cut cannot take everything down.
- A Region is a geographic area, like
us-east-1(N. Virginia) oreu-west-2(London). Regions are independent. Data does not leave a Region unless you move it. - An Availability Zone (AZ) is one or more data centers inside a Region with separate power, cooling and networking. Most Regions have 3 or more, named like
us-east-1a,us-east-1b. They are a few miles apart and linked by fast private fiber (single-digit millisecond latency). - An edge location is a smaller site in a big city, used by CloudFront (the CDN) and Route 53 (DNS) to serve users close to where they are. There are hundreds of them, far more than Regions.
A user's request reaches a load balancer that lives in the Region and spans all three AZs.
Two practical rules fall out of this picture. Pick the Region closest to your users (latency) that offers the services you need (not every service exists in every Region) and keeps data where the law says it must stay. And for anything important, spread across at least two AZs.
eu-west-2a. An AZ outage hits eu-west-2a. What happens?The shared responsibility model
AWS secures the cloud itself. You secure what you put in it. Almost every breach you read about is on the customer's side of the line: a public S3 bucket, a leaked access key, an open database port.
AWS's side: security *of* the cloud. Physical buildings, hardware, and the hypervisor that keeps your VM isolated from other customers.
Four ways to talk to AWS
Every action in AWS is an API call. The console, the CLI and the SDKs are just different ways to make those calls.
| Tool | What it is | Good for |
|---|---|---|
| Console | The website at console.aws.amazon.com | Exploring, one-off checks, billing |
| AWS CLI | The aws command in your terminal | Scripts, quick inspection |
| SDKs | Libraries like boto3 (Python) and @aws-sdk/client-s3 (JS) | Your app's code calling AWS |
| Infrastructure as code (IaC) | AWS CDK, CloudFormation, Terraform | Creating real environments repeatably |
The same "list my buckets" call, three ways:
aws configure sso # sign in with IAM Identity Center (next lesson)aws s3 ls # list bucketsaws sts get-caller-identity # "who am I right now?"import boto3
s3 = boto3.client("s3")
for bucket in s3.list_buckets()["Buckets"]:
print(bucket["Name"])Clicking in the console is fine for learning, but production is built with IaC. Code can be reviewed, versioned in git, and recreated identically in a new account. "I clicked something in March" cannot. You will see CDK and Terraform throughout this track.
Match each task to the best tool.
Setting up an account safely
When you create an AWS account, you get a root user: the email and password you signed up with. Root can do everything, including closing the account and changing billing. It cannot be restricted by policies. Treat it like the master key to your house: lock it in a drawer.
Do these on day one, in this order:
- Turn on MFA for the root user (a passkey or an authenticator app).
- Do not create access keys for root. Ever.
- Create an everyday identity: set up IAM Identity Center and sign in through it (covered in the next lesson). Use that for daily work.
- Create a budget in AWS Budgets, for example $10 a month, with email alerts at 50%, 80% and 100% (and forecasted 100%).
- Turn on billing alerts in the billing preferences so CloudWatch can alarm on estimated charges (Monitoring and Logs builds one).
aws budgets create-budget \ --account-id 123456789012 \ --budget '{"BudgetName":"monthly-10","BudgetLimit":{"Amount":"10","Unit":"USD"},"TimeUnit":"MONTHLY","BudgetType":"COST"}' \ --notifications-with-subscribers '[{"Notification":{"NotificationType":"ACTUAL","ComparisonOperator":"GREATER_THAN","Threshold":80},"Subscribers":[{"SubscriptionType":"EMAIL","Address":"you@example.com"}]}]'A budget does not stop spending. It tells you. A forgotten NAT gateway or a GPU instance will keep billing until you delete it, so look at the alert when it arrives.
Put the safe account setup steps in a sensible order.
- Tap the steps below in the right order.
How this course is laid out
- Core services: IAM, EC2, S3, VPCs and databases, the building blocks almost every system uses.
- Identity and security: policies in depth, multiple accounts, encryption keys, secrets and incident response.
- Modern AWS: Lambda, load balancers, containers, CloudFront, queues, monitoring, the SDK and deeper networking and data modeling.
- Infrastructure as code: Terraform, CDK and keyless CI/CD, so everything you built by hand becomes reviewed code.
- Putting it together: cost, certifications, and one full-stack app deployed end to end.
By the end you can design, secure, deploy and pay for a production web app on AWS and defend each choice. The course closes with a wrap-up that ties it all together.
- Region
- A geographic area like
us-east-1with its own independent set of AZs and services. - Availability Zone
- One or more isolated data centers inside a Region. Spread across 2+ for high availability.
- edge location
- A small site close to users, used by CloudFront and Route 53. Far more of them than Regions.
- shared responsibility model
- AWS secures the cloud (hardware, facilities, hypervisor); you secure what you put in it (data, IAM, config).
- root user
- The account's all-powerful sign-up identity. Protect with MFA, never create access keys, do not use day to day.
- infrastructure as code
- Defining cloud resources in reviewed, versioned code (CDK, CloudFormation, Terraform) instead of clicking.