In this project, i will create a secure and scalable network for a simple web application using a Virtual Private Cloud (VPC). The project will simulate a three-tier architecture (web, application, and database layers) with different security levels applied to each tier, showcasing VPC features like subnets, routing tables, and Network Access Control Lists (NACLs).
Objectives:
Set up a custom VPC with public and private subnets.
Deploy a basic web application that is accessible via the internet but has a securely protected application and database layer.
Use security groups and NACLs to control traffic between the tiers.
Enable logging for network traffic to monitor and troubleshoot network activity.
Step 1: Log in to AWS
Go to AWS Management Console.
Log in with your AWS account credentials.
Open the VPC service by searching for "VPC" in the AWS Management Console search bar.
Step 2: Create a Custom VPC
In the VPC Dashboard, click Your VPCs and Create VPC.
Configure the VPC settings:
Name tag: Adah-Project-VPC
IPv4 CIDR block: 10.0.0.0/16.
IPv6 CIDR block: No IPv6.
Tenancy: Default.
Choose Region
- Click Create VPC.
Step 3: Create Subnets
I’ll create three subnets: one public for the web layer and two private for the app and database layers.
- Public Subnet
Go to subnets and create subnet.
Select Adah-Project-VPC for VPC.
*Subnet name: * Public-Subnet
Availability Zone: Choose an available zone (e.g., us-east-1a).
IPv4 CIDR block: 10.0.1.0/24
Add Another Subnet
- Application Private Subnet:
-
Create another subnet with:
- Name: App-Private-Subnet
- Availability Zone: us-east-1b
- IPv4 CIDR block: 10.0.2.0/24.
- **Click **on add
- Database Private Subnet:
Create a third subnet with:
Name: DB-Private-Subnet
Availability Zone
IPv4 CIDR block: 10.0.3.0/24
Top comments (0)