DEV Community

Vishhhh....
Vishhhh....

Posted on

V for Vishanth, V for VPC: My First AWS Deep Dive

V for Vishanth, V for VPC: My First AWS Deep Dive ☁️

Introduction

Cloud computing allows us to run applications and store data without managing physical servers. But cloud resources also need a secure and organized network. Amazon VPC (Virtual Private Cloud) provides this networking environment in AWS.

What is Amazon VPC?

Amazon VPC is a logically isolated virtual network in AWS where users can launch and manage cloud resources securely. It allows us to control IP addresses, subnets, routing, and network access.

Why was it created?

VPC was created to give users greater control, security, and isolation over their AWS resources.

How It Works

A VPC can be divided into public and private subnets.

         INTERNET
             │
             ▼
    ┌────────────────┐
    │ Internet       │
    │ Gateway        │
    └───────┬────────┘
            │
    ┌───────▼────────┐
    │    AWS VPC     │
    ├────────────────┤
    │ Public Subnet  │
    │   Web Server   │
    ├────────────────┤
    │ Private Subnet │
    │    Database    │
    └────────────────┘
Enter fullscreen mode Exit fullscreen mode

The public subnet can contain a web server, while sensitive resources such as databases can stay in a private subnet.

Key Features

  1. Subnets

VPC can be divided into smaller networks called subnets to organize resources.

  1. Route Tables

Route tables control where network traffic should go.

  1. Security Groups

Security groups act like virtual firewalls and control incoming and outgoing traffic.

  1. VPC Flow Logs

They help monitor and troubleshoot network traffic.

Use Case 🎓

A college could use VPC to host a Student Project Portal.

Students

Web Server

Private Database

The web server can be accessible through the internet, while the student database remains protected inside a private subnet.

Simple Example

For a student project, we could create:

VPC: 10.0.0.0/16

Public Subnet: 10.0.1.0/24
Private Subnet: 10.0.2.0/24

HTTP → Port 80
HTTPS → Port 443

This provides a basic and controlled network for hosting an application.

Advantages

  • Security: Provides network isolation and traffic control.
  • Control: Users can configure IP ranges, subnets, and routing.
  • Scalability: Suitable for small projects and large applications.
  • Integration: Works with services such as EC2 and RDS.

Limitations / Things to Consider

  • VPC networking can be confusing for beginners.
  • Incorrect security settings can create security risks.
  • Advanced components such as NAT gateways can add cost.
  • IP address ranges need proper planning.

Conclusion

Amazon VPC is an important AWS service for building secure and organized cloud networks. It gives developers control over how their applications communicate and protects private resources.

For me, it's simple:

V for Vishanth. V for VPC.

My first step into AWS networking! 🚀

Top comments (0)