What is cloud computing?
A simple explanation of cloud computing, the IaaS, PaaS, and SaaS models, regions, pay-as-you-go pricing, shared security, and how to take your first step carefully.
Beginner$ aws sts get-caller-identity▍Imagine that to have electricity at home, you had to buy a generator, fuel it, maintain it, and hope it never broke down. In real life, you just plug into the outlet and pay the electric bill at the end of the month. Cloud computing is the same idea applied to technology: instead of buying and maintaining servers, you use a provider’s resources over the internet and pay for what you consume.
So what is “the cloud,” anyway?
The cloud isn’t something magical in the sky. It’s data centers (buildings full of servers, which are powerful computers) spread around the world and run by companies like Amazon, Microsoft, and Google. You access these resources over the internet, through a website (the console), the command line, or code. That automation through code is one of the foundations of DevOps.
NIST, the US standards institute, published a widely used definition. According to it, the cloud has five essential characteristics:
| Characteristic | In plain words |
|---|---|
| On-demand self-service | You create a server yourself, in minutes, without opening a ticket or talking to a salesperson |
| Broad network access | Everything is reachable over the internet, from a laptop or a phone |
| Resource pooling | The provider shares a large pool of machines among many customers |
| Rapid elasticity | You can scale capacity up or down quickly, sometimes automatically |
| Measured service | Usage is metered, like an electricity meter, and you pay for what you consume |
IaaS, PaaS, SaaS, and FaaS
Cloud services are grouped by how much work stays with you and how much goes to the provider. A famous analogy is pizza:
- On-premises (your own servers): you make the pizza at home, from scratch.
- IaaS: you buy ready-made dough, but you top and bake it at home.
- PaaS: you order delivery; you just set the table.
- SaaS: you eat at the pizzeria; you don’t worry about anything.
| Model | What you get | Who handles what | Examples |
|---|---|---|---|
| IaaS (Infrastructure as a Service) | Virtual machines, networks, disks | Provider: hardware. You: operating system, updates, application | Amazon EC2, Azure Virtual Machines, Google Compute Engine |
| PaaS (Platform as a Service) | A ready environment to run your code | Provider: servers and system. You: code and data | Heroku, Google App Engine, Azure App Service |
| SaaS (Software as a Service) | A ready-made program used in the browser | Provider: almost everything. You: your data and users | Gmail, Microsoft 365, Slack |
| FaaS / serverless | Functions that run only when called | Provider: servers and scaling. You: the function code | AWS Lambda, Azure Functions |
Serverless doesn’t mean there are no servers. It means you don’t have to think about them: the provider handles everything and charges only for execution time.
The main providers
The three largest public cloud providers are AWS (Amazon Web Services), Microsoft Azure, and Google Cloud. There are also Oracle Cloud, IBM Cloud, Alibaba Cloud, and smaller or regional providers such as DigitalOcean, Hetzner, OVHcloud, and Brazil’s Magalu Cloud.
The concepts in this article apply to all of them. Only the service names and pricing details change. And the public cloud isn’t the only option: there are also private cloud, hybrid cloud, and colocation, explained in cloud types.
Regions and availability zones
A region is a geographic area where the provider has data centers, for example São Paulo (sa-east-1 on AWS) or Northern Virginia (us-east-1). A region close to your users makes your system faster and can help you comply with laws about where data is stored.
Inside a region there are availability zones: separate data centers with independent power and networking. If one zone has a problem, your application can keep running in another. It’s like having two branches of the same store in different neighborhoods.
How much does it cost? Watch the bill
The cloud uses a pay-as-you-go model: you pay for usage (per hour, per second, per gigabyte stored or transferred). That’s why so many people get a scare from their bill:
- A server you forgot to turn off keeps charging, even when idle.
- Transferring data out of the cloud is usually billed.
- Disks, backups, and IP addresses can cost money even with the server stopped.
The big providers offer some kind of free tier or credits for newcomers. The rules change often and have limits, so read the current terms on the official site before creating any resource. To go further, see how to cut AWS costs.
Security: shared responsibility
In the cloud, security is split. The provider handles security of the cloud: buildings, hardware, and the core infrastructure. You handle security in the cloud: passwords, permissions, service configuration, and protecting your data.
Many cloud security incidents come from misconfigurations on the customer’s side, such as a file accidentally left public.
Your first step, carefully
- Create an account with a provider and read the free plan rules.
- Turn on multi-factor authentication (MFA) and don’t use the main user (the root user, on AWS) for daily work.
- Create a budget alert (on AWS, with the AWS Budgets service) with a low amount, so you get an email if spending goes above what you expect.
- Install the CLI (the command-line tool) and set up access following the official documentation.
After that, run commands that only read information and don’t create anything:
# Show the installed AWS CLI version
aws --version
# Show who you are: account, user, and "ARN" (the unique identifier)
aws sts get-caller-identity
# List the S3 buckets (file storage) in your account
aws s3 ls
aws sts get-caller-identity is AWS’s “who am I?” The response looks like this:
{
"UserId": "AIDAEXAMPLE123",
"Account": "123456789012",
"Arn": "arn:aws:iam::123456789012:user/your-user"
}
If you use Azure or Google Cloud, the equivalents are az account show and gcloud config list.
Try it yourself
- Explain the electricity analogy to someone in your own words.
- Classify three services you’ve already used as IaaS, PaaS, or SaaS.
- Find a provider’s list of regions on its website and check whether there is one near you.
- Read a provider’s current free plan terms and write down the limits.
- If you create an account, set up MFA and a budget alert before anything else.
- Run
aws sts get-caller-identityand find the account number in the response.
Next steps
- Public, private, hybrid cloud, and colocation
- What is DevOps
- Kubernetes: when to use it and when not to
- FinOps: how to cut AWS costs
The cloud is like a power outlet: convenient and powerful, as long as you keep an eye on the meter.