Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.57 KB

File metadata and controls

52 lines (39 loc) · 1.57 KB

AWS VPC Networking Project

This project demonstrates how to design and deploy a custom Virtual Private Cloud (VPC) in AWS using Terraform and the AWS Console.

Objective

Create a custom VPC with a public subnet, internet gateway, route table, security group, and EC2 instance.

Architecture

  • Custom VPC (10.0.0.0/16)
  • Public subnet (10.0.1.0/24)
  • Internet Gateway
  • Route table with default route
  • Security group allowing SSH and HTTP
  • EC2 instance in public subnet running nginx

Steps Performed

  1. Created a custom VPC
  2. Created a public subnet
  3. Attached an internet gateway
  4. Configured a route table and association
  5. Created a security group
  6. Launched an EC2 instance in the public subnet
  7. Installed nginx and verified via browser

Terraform

  • Provider: AWS
  • Region: us-east-1
  • Files:
    • terraform/main.tf

CLI Commands

  • See cli-commands/README.md for example AWS CLI commands

Screenshots

Screenshots are saved in the screenshots/ folder:

  • ec2-in-vpc.png → EC2 instance launched in public subnet
  • ec2-public-ip.png → Public IPv4 assigned to EC2
  • ec2-security-group.png → Security group attached to EC2
  • nginx-vpc-test.png → Nginx web server running and accessible via browser

Security Considerations

  • SSH and HTTP are open to 0.0.0.0/0 for demo purposes
  • In production, access should be restricted by IP
  • Private subnets and NAT gateways should be used for backend resources

⚠️ Note: This project was created for learning and portfolio purposes. Resources have been cleaned up to avoid AWS charges.