2026-04-29 · AWS

EC2 vs S3

What I Learned

  • - EC2 is compute: it runs operating systems, apps, services, and scripts.
  • - S3 is storage: it stores objects and serves files when permissions allow it.
  • - A common cloud app can use EC2 for the backend and S3 for static assets, backups, or logs.

Why It Matters

Choosing the wrong service can make a solution harder to manage, more expensive, or less secure.

Mistakes and Challenges

  • - I initially compared them like they were similar products, but they solve different problems.
  • - I had to think in terms of compute, storage, networking, and security boundaries.

What I Built/Tested

  • - Mapped a simple hosted app architecture using EC2 and S3 together.
  • - Compared what happens when an HTML file is hosted from S3 versus served from a web server on EC2.