AWS Project: Deploy MERN Stack on AWS (2-Tier Architecture)

Project Goal

Deploy a production-style MERN stack application on AWS using:

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