Step-by-step practical guide. Build your own private network from scratch โ subnets, internet gateway, routing, and security groups.
Before touching the console, build your mental model. Work in pairs.
Name tag : iimt-vpc IPv4 CIDR : 10.0.0.0/16 IPv6 CIDR : No IPv6 Tenancy : Default
iimt-vpc created with CIDR 10.0.0.0/16. State: Available. No subnets, no IGW, no route table yet โ just the container.Part A โ Create Public Subnet
Name : iimt-public-subnet Availability Zone: ap-south-1a IPv4 CIDR : 10.0.1.0/24
Name : iimt-private-subnet Availability Zone: ap-south-1b IPv4 CIDR : 10.0.2.0/24
Part B โ Create and Attach Internet Gateway
Name: iimt-public-rt VPC : iimt-vpc
Destination: 0.0.0.0/0 # means "all internet traffic" Target : Internet Gateway โ iimt-igw
VPC : iimt-vpc Subnet : iimt-public-subnet Auto-assign public IP: Enable
Name: iimt-web-sg # INBOUND RULES: Type : SSH ยท Port 22 ยท Source: My IP # Admin access Type : HTTP ยท Port 80 ยท Source: 0.0.0.0/0 # Web access
#!/bin/bash yum update -y yum install -y httpd systemctl start httpd systemctl enable httpd echo "<h1>Hello from IIMT VPC Lab!</h1>" > /var/www/html/index.html
Work in pairs. Draw on paper (or whiteboard). No laptop needed.
| Lab | What We Did | Key Learning |
|---|---|---|
| Lab 1 | Explored Default VPC | AWS creates a working VPC automatically โ now we know what one looks like |
| Lab 2 | Created Custom VPC (10.0.0.0/16) | VPC = empty container. IP range set at creation, cannot change later |
| Lab 3 | Created 2 subnets + Internet Gateway | Subnets divide the VPC; IGW connects VPC to the internet |
| Lab 4 | Configured Route Tables | The route 0.0.0.0/0 โ IGW is what makes a subnet "public" |
| Lab 5 | Launched EC2 in custom VPC with web server | Security Group controls what traffic reaches the instance |
Step-by-step AWS docs for every lab above.
| Lab Topic | AWS Docs URL |
|---|---|
| Create a VPC (Lab 1) | vpc/create-vpc.html |
| Create Subnets โ Public & Private (Lab 2) | vpc/create-subnets.html |
| Internet Gateway (Lab 3) | vpc/VPC_Internet_Gateway.html |
| Route Tables (Lab 3) | vpc/VPC_Route_Tables.html |
| Security Groups (Lab 4 & 5) | vpc/vpc-security-groups.html |