Amazon EC2
Compute · Learn this early
A computer you rent in Amazon's data centre.
Picture it as
Renting a flat instead of buying a house. You pick the size, you get the keys, you install what you want.
What it actually does
EC2 gives you a full server. You choose how much CPU, memory and disk. You install the operating system and your software. You control everything, so you also maintain everything.
Reach for it when
- You need full control of the machine
- You are moving an existing server to the cloud
- Your software must run all the time
Do not reach for it when
- You just want to run a small piece of code now and then. Use Lambda.
- You do not want to patch servers. Use Fargate or App Runner.
One small example
A shop's billing software that must run 24 hours a day on one server.
How you pay
Per second the machine is on, by size. Stopped machines cost nothing for compute but the disk still costs.
Usually sits next to
The real source
This is a simplified summary written for people learning AWS. The official AWS documentation is the authoritative word and it wins wherever this page disagrees with it.