
A Virtual Private Cloud (VPC) is a private network in AWS where I securely deployed my cloud resources. It allowed me to control networking, security, and internet access for my project.
💡 Analogy: A VPC is like a gated neighborhood where I decide who can enter.
🧠 Memory Trick: No VPC = No Home
A subnet is a section of a VPC where AWS resources are placed. I used a public subnet so my EC2 instance could communicate with the internet.
💡 Analogy: If the VPC is a neighborhood, the subnet is a street.
🧠 Memory Trick: VPC = City, Subnet = Street

An Internet Gateway connects my VPC to the internet, allowing users to access my website and enabling SSH access to my EC2 instance.
💡 Analogy: The main entrance gate to a neighborhood.
🧠 Memory Trick: No Gateway = No Internet.

A Security Group acts as a virtual firewall that controls incoming and outgoing traffic. I allowed SSH, HTTP, and HTTPS access to securely manage and serve my website.
💡 Analogy: A security guard checking who can enter a building.
🧠 Memory Trick: Security Groups protect the server.