Skip to content

naimurhamim/AWS-VPC-EC2-RDS-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

AWS Project: VPC, EC2, RDS and Internet Gateway -

AWS VPC EC2 RDS Cloud

This project demonstrates a complete AWS infrastructure setup using Amazon VPC, EC2, RDS (MySQL), Internet Gateway, NAT Gateway, Route Tables, and Security Groups.
The goal was to deploy a secure, scalable web application architecture following AWS best practices.


🧱 Architecture Overview

  • Custom VPC with public and private subnets
  • Internet Gateway for public access
  • NAT Gateway for private subnet outbound access
  • EC2 instance hosting a web application
  • Amazon RDS (MySQL) in private subnet
  • Secure networking using route tables and security groups

🛠️ Services Used

  • Amazon VPC
  • Amazon EC2
  • Amazon RDS (MySQL)
  • Internet Gateway
  • NAT Gateway
  • Route Tables
  • Security Groups
  • AWS CloudShell

📌 Step-by-Step Implementation

1️⃣ Create VPC

Created a custom VPC with CIDR block 10.0.0.0/16.

VPC Create


2️⃣ Enable DNS Resolution & Hostnames

Enabled DNS resolution and DNS hostnames to support public resources.

Enable DNS Hostname


3️⃣ Create Subnets

Created four subnets across two Availability Zones.

  • Public-1A → 10.0.1.0/24
  • Public-1B → 10.0.2.0/24
  • Private-1A → 10.0.3.0/24
  • Private-1B → 10.0.4.0/24

Subnet Creation Page Public Subnet 1A Public Subnet 1B Private Subnet 1A Private Subnet 1B


4️⃣ Verify Subnets

Confirmed all subnets were created successfully.

Subnets Overview


5️⃣ Create Private Route Table

Created a custom route table for private subnets.

Private Route Table Create


6️⃣ Configure Route Table Routes

Added routes for internal traffic and internet access.

Edit Routes


7️⃣ Route Tables Overview

Verified main and private route tables.

Route Tables Overview


8️⃣ Associate Private Subnets

Associated private subnets with the private route table.

Subnet Association


9️⃣ Create & Attach Internet Gateway

Created an Internet Gateway and attached it to the VPC.

Attach IGW Create IGW


🔟 Create NAT Gateway

Created NAT Gateway in public subnet for outbound internet access from private subnets.

NAT Gateway


1️⃣1️⃣ Configure Private Route Table for NAT

Updated private route table to route traffic through NAT Gateway.

Private Route Table Routes


1️⃣2️⃣ Create Security Group

Configured inbound and outbound rules for EC2 access.

Security Group


1️⃣3️⃣ Launch EC2 Instance

Launched an EC2 instance using Amazon Linux AMI.

EC2 AMI Selection EC2 Network Settings


1️⃣4️⃣ Create RDS MySQL Database

Configured RDS MySQL database with free-tier eligible settings.

RDS Engine Selection RDS Credentials RDS Storage & Connectivity


1️⃣5️⃣ Connect to EC2 via CloudShell

Connected to EC2 securely using SSH.

SSH Login System Configuration


1️⃣6️⃣ Deploy Application & Database

Downloaded application files and configured MySQL database.

App Download MySQL Connection Show Databases Create Database Insert Dummy Data


1️⃣7️⃣ Web Application Access

Successfully accessed the deployed web application.

Web App Login


✅ Final Outcome

  • Secure AWS network architecture implemented
  • EC2 connected to RDS using private networking
  • Web application successfully deployed and tested
  • Followed AWS best practices for security and availability

MD Naimur Rashid
University of Frontier Technology

About

Hands-on AWS project demonstrating a complete VPC-based architecture using EC2, RDS (MySQL), Internet Gateway, NAT Gateway, route tables, and security groups, following AWS best practices.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors