AWS Project: Deploy MERN Stack on AWS (2-Tier Architecture)
Project Goal
Deploy a production-style MERN stack application on AWS using:
- Custom VPC
- Public + Private subnets
- Application Load Balancer
- Auto Scaling Groups
- MongoDB Atlas database
- Secure backend architecture
Final architecture flow:
User → Public ALB → Frontend ASG → Internal ALB → Backend ASG → MongoDB Atlas
Phase 1 — Create Networking Infrastructure (VPC Setup)
Step 1: Create VPC
Create a custom VPC
Name: mern-vpc
CIDR: 10.0.0.0/16
Step 2: Create Subnets
Create 4 subnets
Public Subnets