Day 1 of My AWS Journey: Understanding EC2 & VPC in the Simplest Way Possible


๐ Introduction
Welcome to Day 1 of my AWS Zero to Hero journey! If you're new to cloud computing or feel overwhelmed by AWS terms like EC2 or VPC, you're in the right place.
Cloud can seem complex, but letโs break it down in a way that even a non-technical person can understand. Imagine the internet as a huge city, and AWS as a company that rents out homes, roads, and electricity in that city so you can build and run your own house (aka your app or website) without buying the land yourself. Sounds simpler, right?
Today, I explored two core AWS services: EC2 (Elastic Compute Cloud) and VPC (Virtual Private Cloud). In this post, I'll explain them in simple, beginner-friendly terms, and also sprinkle in some technical context โ so you can walk away feeling confident, not confused.
๐ฉ๏ธ What is EC2?
Letโs start with an analogy:
Think of EC2 as your own personal computer โ but on the internet.
You can turn it on, install apps, host a website, and shut it down whenever you like. The best part? You donโt need to physically own it. AWS provides you this computer as a service.
๐ EC2 in Layman Terms:
Imagine you need a computer to run a website or a backend service.
Instead of buying hardware, you rent a machine from AWS for as long as you need.
Itโs fast, scalable, and cost-effective.
๐ก Why EC2 is Important
It gives you full control over a virtual server.
You can choose how much CPU, RAM, and storage you need.
You can install any software, run scripts, manage traffic โ just like on your laptop or desktop.
๐ EC2 Use Cases:
Hosting websites
Running backend services or APIs
Scientific modeling and machine learning
Development and testing environments
๐งฐ EC2 Key Concepts:
AMI (Amazon Machine Image): Think of this as the blueprint or OS image (e.g., Ubuntu, Windows) you want on your EC2.
Instance Type: This defines how powerful your EC2 should be โ like choosing between a basic laptop or a high-end gaming rig.
Security Groups: Firewalls that control who can talk to your server.
Key Pairs: A way to log into your server securely via SSH.
๐ง Types of EC2 Instances
Depending on what you're doing, AWS offers a range of EC2 types:
General Purpose: Balanced for most use cases (web apps, dev envs)
Compute Optimized: For heavy processing (games, data crunching)
Memory Optimized: For large memory needs (in-memory DBs)
Storage Optimized: For fast reading/writing of data (data warehousing)
Accelerated Computing: With GPUs or FPGAs for machine learning and video rendering
๐ธ Pricing Models
On-Demand: Pay for what you use.
Spot: Very cheap but can be interrupted anytime.
Reserved: Pay upfront to save costs for long-term usage.
๐ What is VPC?
Now that youโve got your computer (EC2), where do you want it to live?
Think of VPC as your private building inside the cloud.
You get to design the layout โ rooms, doors, gates, guards, and everything else. AWS lets you control how things communicate inside and outside your building.
๐ VPC in Layman Terms:
Itโs your own private space within AWS.
Just like your home network (Wi-Fi + router), but in the cloud.
You can put your servers, databases, and applications here securely.
๐งฑ Components of a VPC:
๐ฆ Subnets
Think of it as: Rooms inside your house
Technical: A range of IP addresses within the VPC.
Public Subnet: Connected to the internet (via Internet Gateway)
Private Subnet: Not connected to the internet directly
You place your resources in subnets based on access control needs.
๐ Internet Gateway (IGW)
Think of it as: The front door of your house that opens to the public road (Internet)
Technical: A horizontally scaled, redundant AWS component that allows traffic between the internet and your VPC.
Only public subnets can use it.
Must be attached to the VPC and added in the route table
๐ NAT Gateway
Think of it as: A backdoor for private rooms (subnets) to go out but not let others come in
Technical: Network Address Translation Gateway enables private instances to access the internet (for updates, API calls) without being exposed.
Used in private subnets.
It translates private IPs to public IPs only for outbound traffic.
๐ก๏ธ Security Groups
Think of it as: The personal bodyguard for each instance
Technical: A stateful, instance-level firewall.
Controls inbound and outbound traffic for EC2 and other resources.
Example: Allow only SSH (port 22) and HTTP (port 80).
๐ง Network ACL (NACL)
Think of it as: The main gate to your house compound
Technical: A stateless firewall that operates at the subnet level.
Can allow/deny specific IP ranges.
Good for additional network protection.
๐บ๏ธ Route Table
Think of it as: Your GPS or map system
Technical: Decides where to send traffic going from your subnet.
- Routes can point to internet gateway, NAT gateway, other subnets, etc.
๐ VPC Peering
Think of it as: A private bridge connecting two neighborhoods
Technical: Lets resources in different VPCs communicate privately without using the internet.
- Great for microservices across different VPCs.
๐ก๏ธ Why Use VPC?
Control over who can access your apps
Isolation from other peopleโs networks
Secure and scalable for any project
๐ Default vs Custom VPC
AWS gives you a basic setup by default (called the Default VPC), but for real-world apps and best security practices, it's better to create your own custom VPC with detailed configurations.
๐บ Videos That Helped Me Understand These Concepts
Here are two fantastic beginner-friendly videos that I watched to truly understand EC2 and VPC:
Both videos break things down visually and make abstract topics much easier to grasp. Highly recommended!
๐ Key Takeaways
EC2 = Your rented computer in the cloud.
VPC = Your private, secure network where your EC2 and other services live.
Both are foundational to running anything meaningful in AWS.
๐ Whatโs Next?
In Day 2, Iโll explore:
IAM (Identity and Access Management)
Launching an EC2 inside a custom VPC
Setting permissions, roles, and more
I hope this breakdown helped you understand EC2 and VPC in simple terms. If you're also learning AWS, follow my journey and feel free to ask any questions in the comments below!
#AWS #BuildWithRajesh #100DaysOfCloud #EC2 #VPC #AWSForBeginners #CloudComputing #ZeroToHero
Subscribe to my newsletter
Read articles from Rajesh Barik directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
