Home ☁️ Cloud Cloud Fundamentals

What is
Cloud Computing?

From owning a private power plant to simply plugging into the grid — the complete guide to cloud fundamentals, AWS infrastructure, and the five pillars every practitioner must master.

📅 Updated 2026 ⏱️ ~20 min read ☁️ Cloud · AWS · Fundamentals
💡

On-Demand

Resources when you need them

💳

Pay-as-you-go

Only for seconds you use

↔️

Elastic Scale

Grow or shrink instantly

🌍

Global Reach

Deploy anywhere in seconds

🏚️

The Simple Explanation

Building Your Own Power Plant

Traditional computing was like owning a restaurant where you had to build the building, buy every stove and refrigerator, and hire a full-time repairman just in case the oven broke. If you had a busy Friday night, you couldn't suddenly make the kitchen bigger — customers simply had to wait. If Tuesday was slow, the stoves sat hot and unused, wasting gas and money.

This is exactly how businesses ran their digital infrastructure for decades. They bought physical servers, rented air-conditioned rooms to keep them cool, and hired full IT teams to manage the wiring and software updates.

⚠️ Core Challenges of On-Premise Infrastructure

ChallengeTraditional SystemImpact on Business
Initial Cost High upfront capital expenditure on hardware and space Limits startups and small businesses from even starting
Scalability Slow — requires ordering, shipping, and installing new metal boxes Businesses crash during sudden traffic spikes
Maintenance 24/7 dedicated IT staff for physical repairs High ongoing cost; distraction from core business goals
Reliability Single point of failure — one broken server stops the service High risk of costly, embarrassing downtime
Updates Manual hardware and software upgrades every few years Systems quickly become obsolete and insecure

⚡ The Energy Waste Problem

Because most companies bought more servers than they needed "just in case," those servers typically ran at less than 10% capacity — while still drawing full power for cooling systems. A massive waste of energy and money, all to handle a traffic spike that might never come.

💰 CapEx vs. OpEx — The Financial Shift

Before Cloud

Capital Expenditure (CapEx)

Spending large sums of money upfront to buy physical assets — servers, racks, cabling, cooling systems. The money is spent before a single customer arrives. If the business fails, the hardware is a sunk cost.

After Cloud

Operational Expenditure (OpEx)

Paying for computing as a day-to-day running cost — like a utility bill. You pay only for the minutes or seconds you actually use a computer. Start small, grow only when demand arrives, stop paying the moment you stop using it.

🔌

The Simple Explanation

Plugging Into the Grid

Cloud computing transformed computing power into a service delivered over the internet — just like electricity. Instead of owning a private generator, you plug into the electrical grid and pay for the kilowatt-hours you use. "The cloud" is simply massive data centres filled with thousands of powerful computers, located globally, managed by providers like AWS.

🪄 Virtualisation — The Magic Behind the Cloud

🏢 Apartment block analogy: A single massive physical server in an AWS data centre can be split into hundreds of Virtual Machines (VMs), each acting like an independent computer. This is multi-tenancy — multiple users safely sharing the same large hardware, like people living in separate apartments in one building. No hardware sits idle, and costs are shared among many users.

Cloud FeatureDescriptionSimple Analogy
On-Demand Resources available immediately when requested Turning on a water tap
Pay-as-you-go Pay only for the minutes or seconds you use A taxi meter that only runs while you're in the car
Elasticity System automatically grows or shrinks based on demand A magical balloon that expands as you put more things in it
Global Reach Services launched in different countries in seconds Having a kitchen in every city in the world at your disposal

On-Premise vs. Cloud — Cost Over Time

Cloud shifts the heavy upfront investment into a smooth, usage-based operating cost that scales with your actual demand.

🧱

The Simple Explanation

How Much Control Do You Want?

The cloud isn't one thing — it's a spectrum of how much responsibility you take on vs. how much you hand off to AWS. The further up the stack you go, the less infrastructure you manage and the more you focus purely on your product.

📚 The Service Model Stack

IaaS

Infrastructure as a Service

Maximum Control · Maximum Responsibility

The most basic building blocks: virtual servers, networking, and storage. Like renting a piece of land to build a house. AWS provides the ground, the pipes for water and electricity — but you build the walls, choose the furniture, and decide who enters.

EC2 (Virtual Servers) VPC (Networking) EBS (Storage)
🏗️
PaaS

Platform as a Service

Balanced Control · OS & Hardware Managed For You

Removes the need to manage the operating system or physical hardware. Like renting a fully-equipped professional kitchen. The ovens, tools, and electricity are maintained for you — you only bring your ingredients (code) and start cooking (running your app).

Elastic Beanstalk AWS Lambda RDS
🍳
SaaS

Software as a Service

Least Control · Everything Managed For You

A complete product run and managed entirely by the provider. Like eating at a restaurant — you sit down, order, and enjoy. You don't care how the stove works or who cleaned the floor. You just want the food.

Gmail Salesforce Netflix
🍽️

📊 Shared Responsibility at a Glance

LayerIaaSPaaSSaaS
Physical hardwareAWS ✓AWS ✓AWS ✓
Operating systemYou ✓AWS ✓AWS ✓
Runtime / middlewareYou ✓AWS ✓AWS ✓
Application / dataYou ✓You ✓AWS ✓
🌍

The Simple Explanation

A City Full of Restaurant Districts

AWS doesn't just exist "in the air" — it's built on a massive global physical foundation. To ensure your website never goes down, AWS organises its data centres into a hierarchy: individual Data Centres (single restaurants) → Availability Zones (streets of restaurants) → Regions (entire food districts of a city).

🗺️ The Geography Hierarchy

ComponentWhat It IsKitchen Analogy
Data Centre A single building full of computers with independent power and cooling A single restaurant
Availability Zone (AZ) 2–6 data centres in one neighbourhood, connected by high-speed private links A street full of different restaurants
Region 2–6 AZs in a large geographic area (e.g. N. Virginia, Tokyo, London) The entire city's food district

🏘️ Why Multiple AZs?

If a storm causes a power outage in one neighbourhood (one AZ), your server in the other neighbourhood (another AZ) keeps running. Customers never notice a problem. This is called High Availability — ensuring a system is almost always working.

🗺️ How to Choose a Region

Choose the region closest to your users to minimise latency. Also consider data residency laws — some countries require data to stay within their borders. Check the Region Selector in the AWS Console top-right.

⚠️

The Most Common Beginner Mistake

If you launch a server in "Oregon" but your website configuration is in "Virginia," you won't be able to see it. Always check the Region Selector (top-right of the AWS Console) before creating any resource.

🖥️

The Simple Explanation

Renting a Computer in a Data Centre

Amazon EC2 is the most fundamental service in AWS. It allows you to launch a virtual server — a computer that lives in an AWS data centre instead of on your desk. You choose the size, the operating system, the security rules, and the storage, then switch it on. Pay for every second it runs; stop paying the moment you turn it off.

🚀 Anatomy of an EC2 Launch

🏷️ Name & Tags

Give your server a name like My-Web-Server. Tags are key-value labels on a moving box that help you find and organise resources later — e.g. Environment: Production.

🧠 AMI (Amazon Machine Image)

The "brain" template for your server. Determines the operating system (Linux, free and popular for servers; or Windows) and any pre-installed software. Think of it as the recipe for what kind of computer you're creating.

💪 Instance Type

Determines the CPU power and RAM. In a name like m5.large: M is the family (General Purpose), 5 is the generation (newer is better), large is the size. t2.micro is Free Tier eligible — free for new accounts.

🔑 Key Pair

A digital key file you download to your computer. Like a physical key to a door — without it, you cannot SSH (remotely log in) to your server. Download it once; if you lose it, you're locked out permanently.

🔥 Security Groups

A virtual firewall controlling what traffic can reach your server. You define rules: "Allow Port 80 (website traffic) from anywhere" and "Allow Port 22 (SSH login) from my IP only".

💾 EBS Storage

The virtual hard drive attached to your server where files are saved. Persists independently of the instance — if you stop the server, the data is still there.

⚙️ Choosing the Right Instance Family

FamilyBest Used ForSimple Analogy
M, TGeneral Purpose Balanced resources: web servers, small apps, dev environments A Swiss Army knife — good at everything
CCompute Optimised High-power maths, scientific modelling, gaming servers A specialised race-car engine
R, XMemory Optimised Large databases and in-memory analytics that need vast RAM A massive desk that holds a thousand books at once
I, DStorage Optimised Very fast reading and writing of huge files A high-speed delivery truck
P, GAccelerated Computing AI/ML training, video rendering, graphics-heavy workloads Adding a powerful telescope to a standard lab
🗄️

The Simple Explanation

Where Your Files and Data Live

Every application needs two kinds of storage: a place to put files (images, videos, documents — that's S3) and a place to put structured data (customer records, orders, accounts — that's RDS). Together they cover the full storage needs of almost any application.

🪣 Amazon S3 — Object Storage

S3 stores files called objects inside containers called buckets. Unlike a normal computer with folders inside folders, S3 is a flat storage system. AWS automatically replicates every object across at least three AZs for 11-nines durability (99.999999999%).

🪣

Buckets

Containers for your data. Every bucket must have a globally unique name — if someone names their bucket my-photos, no one else in the world can use that name.

📄

Objects & Keys

Files are "objects." The "key" is the file's name within the bucket, e.g. vacation/beach.jpg. Slashes look like folders but S3 has no real folder structure.

🔒

Private by Default

Everything in S3 is private and locked when you upload it. You must explicitly choose to make a file public. Never assume something is private without checking.

Storage ClassWhen to Use ItKitchen Analogy
S3 StandardFiles accessed every day — website images, active assetsItems on your kitchen counter
S3 Intelligent-TieringUnpredictable access; AWS moves data between tiers automaticallyA pantry that moves your favourite snacks to the front
S3 Standard-IAInfrequent access; needed fast when requested — backupsTools in the garage you use once a month
S3 GlacierArchival; retrieval takes minutes to hours — complianceBoxes in a storage unit across town
S3 Glacier Deep ArchiveCheapest; data you might never look at — 7–10 year retentionA time capsule buried in the backyard

🗃️ Amazon RDS — Managed Relational Databases

A database organises data into tables like a digital spreadsheet. Before the cloud, setting up a database meant if the server it lived on broke, all data could be lost. RDS automates setup, automated backups, software patching, and failover.

⚙️ Key Features

  • Engines: MySQL, PostgreSQL, Oracle, SQL Server, MariaDB
  • Automated Backups: Daily snapshots — restore to any point in the past
  • Multi-AZ: Standby copy in a different AZ for instant failover
  • Scaling: More CPU, RAM, and storage with a button click

🚀 RDS Creation Checklist

1. Standard Create (full control)
   OR Easy Create (best defaults)
2. DB Identifier: customer-db-1
3. Master Password: [secure!]
4. Public Access: NO ← always
5. Multi-AZ: YES ← for production
6. Automated backups: ON ← always

🗃️ Multi-AZ failover: RDS creates a "standby" copy of your database in a different neighbourhood (AZ). If the primary database breaks, AWS instantly switches to the standby — typically in under 60 seconds. This is called automatic failover, and your application reconnects to the new primary without you doing anything.

🏘️

The Simple Explanation

Your Private Fenced-Off Section of the Cloud

The entire AWS cloud is like a giant public park. A VPC is a small section of that park that you fence off and lock. You decide who comes inside, what rooms they can enter, and what they're allowed to do. Everything inside is invisible to the rest of the world unless you explicitly open a door.

🏗️ Anatomy of a VPC

🏠

Public Subnet

A room with a window to the outside. This is where your web servers and load balancers live — the parts that talk to the internet. Connected to the Internet Gateway.

🔒

Private Subnet

A room with no windows and a locked door. Databases and internal APIs live here. No direct internet access — only your web servers in the public subnet can reach it.

🚪

Internet Gateway (IGW)

The front gate of your VPC. Without attaching an IGW, your VPC is completely cut off from the internet. Must be attached for public subnet resources to receive external traffic.

🗺️

Route Table

A set of rules — like a map — telling data where to go. Example: "If someone wants to reach the website, send them to the public subnet. If traffic needs to go to the internet, send it to the IGW."

📊

CIDR Block

A fancy name for a range of IP addresses (digital house numbers) your VPC is allowed to use. For example 10.0.0.0/16 gives you 65,536 private IP addresses to assign to resources.

🛡️ Two Layers of Security

ComponentGuardsTypeRulesAnalogy
Security Group Individual instance (server) Stateful Allow only A smart doorbell that remembers you
Network ACL Entire subnet (neighbourhood) Stateless Allow AND Deny A grumpy gate guard who checks you both ways

🚦 Security Group (Stateful)

Sits right in front of your EC2 instance. Stateful means it remembers who it let in — if an allowed request enters, the reply automatically exits without needing a separate rule. Only "Allow" rules. Default: deny everything.

🚷 Network ACL (Stateless)

Sits at the subnet boundary. Stateless means it checks every packet independently — both incoming AND outgoing need explicit Allow rules. Can actively Deny specific IPs. Acts as the outer perimeter defence.

🔑

The Simple Explanation

Who Can Do What

IAM is the service that controls every access decision in your AWS account. It is the single most important service for keeping your account safe. Think of it as the HR department + security team of your cloud — it issues keycards, defines what rooms each keycard opens, and revokes access when someone leaves.

🧩 IAM Components

👤

Users

Individual people — a developer, an accountant. Each person gets their own username and password (and optionally, programmatic access keys). Credentials are unique to that person.

👥

Groups

A collection of users who do the same job. Create a "Developers" group once, attach the right permissions, and every developer added to the group inherits them automatically — no need to set permissions one by one.

🎭

Roles

A temporary identity that a person or a server can "put on like a costume." For example, an EC2 server that needs to write files to S3 "assumes" the S3-Writer role to get permission for a limited time — no hard-coded keys needed.

📋

Policies

The actual written rules in JSON. A policy says: "You ARE allowed to view objects in S3, but you are NOT allowed to delete them." Policies are attached to users, groups, or roles.

📄 Example IAM Policy — Read-Only S3

{
  "Effect": "Allow",
  "Action": ["s3:GetObject", "s3:ListBucket"],
  "Resource": "arn:aws:s3:::my-bucket/*"
}

← No s3:DeleteObject = cannot delete

⚖️ The Principle of Least Privilege

The Most Important Security Rule in Cloud Computing

Give every user and service the minimum amount of permission they need to do their job — and nothing more. The janitor gets a key to the cleaning cupboard, not the server room. The website gets permission to read images from S3, not to delete the entire database.

Don't give AdministratorAccess to every developer "for convenience"
Create a ReadOnlyDevelopers group with just the services they need
Never use your root account for day-to-day work
Create individual IAM Users with MFA enabled from day one
🎛️

The Simple Explanation

The Dashboard of a Very Advanced Car

The AWS Management Console is the website you log into to manage all your cloud resources. It gives you visual access to every service in AWS — from a single screen. Learn to navigate it well and you have the entire global infrastructure of AWS at your fingertips.

🖱️ Key Parts of the Console

🔍

Search Bar (Top Centre)

Type any service name ("EC2", "S3", "IAM") to navigate instantly. The fastest way to get anywhere.

🌍

Region Selector (Top Right)

Always shows which city you're working in. If you can't find a resource you created, check here first — it's almost always a region mismatch.

💳

Account Menu (Top Right)

Billing, Cost Explorer, logout. This is where you see how much you've spent this month.

📊

Home Widgets

Customisable dashboard cards showing recent services, cost summaries, and resource health at a glance.

💰 Controlling Costs — Budgets & Alarms

💳 Pay-as-you-go is great — until you accidentally leave a large server running for a month. AWS provides budget and alarm tools to make sure this never happens to you. Set these up on day one of your account.

📊 AWS Budgets

Set a monthly spending limit (e.g. $10/month). Configure alert thresholds to email you when you hit 50%, 80%, and 100% of your budget.

Budget: $10/month
Alert at: $5 (50%) ← email
Alert at: $8 (80%) ← email
Alert at: $10 (100%) ← email

🚨 CloudWatch Billing Alarm

A real-time siren that triggers the moment your predicted bill exceeds a threshold. Faster than Budgets — reacts to spending spikes immediately rather than at month-end.

🆓 Free Tier

New AWS accounts get 12 months of free usage for core services. Always look for the "Free tier eligible" label when launching resources. t2.micro EC2 and 5GB S3 are free.

The Beginner's Safety Checklist

Set up a $1 budget alarm immediately on account creation
Always use Free Tier eligible options while learning
Stop or Terminate resources when you're finished with them
Enable MFA on your root account immediately
Never use the root account for day-to-day work
Check the Region Selector before creating any resource

Summary

The Path to Cloud Proficiency

Cloud computing has made high-powered technology accessible to everyone. By mastering the five core pillars, you can build systems that are faster, safer, and cheaper than anything on-premise ever was.

Compute (EC2): The muscle that runs your code
Storage (S3): The safe place that holds your files
Database (RDS): The organised brain that stores your data
Networking (VPC): The private fence that keeps your world secure
Identity (IAM): The rules that decide who can enter

Treat these services as a set of LEGO blocks — start small, keep your security tight, watch your budget, and the entire global infrastructure of AWS is yours to build with.