Amazon VPC Introduction to Amazon Virtual Private Cloud (original) (raw)

Last Updated : 27 May, 2026

Amazon Virtual Private Cloud (VPC) is the fundamental networking layer for your cloud infrastructure. It allows you to provision a logically isolated section of the AWS Cloud where you can launch AWS resources in a virtual network that you define. A VPC works like a private network in the cloud, where you can control IP address range, subnets, routing, and network access for your AWS resources.

VPC vs. Traditional Private Cloud

AWS VPC and Traditional Private Cloud are both used to create private and secure networks for hosting resources and applications. However, AWS VPC provides better flexibility, pricing, and easier cloud connectivity compared to traditional private cloud environments.

**Feature AWS VPC **Traditional Private Cloud
Flexibility Can grow easily when needed Limited by hardware
**Security Uses Security Groups, NACLs, and IAM Uses firewalls and VPNs
Cost Pay-as-you-go Expensive to set up and maintain
**Connection Easy connection with AWS services and internet Limited external access

Analogy Of VPC

Let's try to understand it by taking an example of the GeeksforGeeks office setup. Just like GeeksforGeeks carefully organizes its departments and controls access, a VPC organizes and secures resources in the AWS cloud.

Amazon VPC Architecture

The basic architecture of a properly functioning VPC consists of many distinct services such as Gateway, Load Balancer, Subnets, etc. Altogether, these resources are clubbed under a VPC to create an isolated virtual environment. Along with these services, there are also security checks on multiple levels.

external_network

The following are the components of Amazon VPC Architecture:

**1. VPC

**2. Subnets

A Subnet is a segment of a VPC’s IP address range that resides entirely within a single Availability Zone (AZ).
Subnets serve two primary purposes:

Subnets are typically categorized as:

This distinction forms the foundation of secure, multi-tier cloud architectures.

**3. Route Tables

Each VPC contains an implicit virtual router that relies on Route Tables to direct traffic. Every subnet must be associated with exactly one route table, and each route defines:

Route tables determine whether traffic remains internal to the VPC or is sent to external networks. They are the digital roadmap of the cloud network.

**4. Network Access Control Lists

**5. Internet Gateway(IGW)

**6. Network Address Translation (NAT)

7. Security Groups

8. Classless Inter-Domain Routing (CIDR):

**CIDR notation defines the IP range of a VPC or subnet, using syntax such as 10.0.0.0/16.
It provides flexibility in assigning and subdividing private address ranges as specified in **RFC 1918, which includes:

These address blocks ensure isolation within private networks and avoid conflicts with public IP space.

Security Groups vs. Network ACLs (NACLs)

AWS provides two layers of firewalls. Understanding the difference is critical for security exams and real-world ops.

**Feature **Security Group (SG) **Network ACL (NACL)
**Level **Instance Level (Virtual Firewall for EC2). **Subnet Level (Firewall for the whole subnet).
**State **Stateful: If you allow inbound request, the outbound response is automatically allowed. **Stateless: You must explicitly allow both inbound and outbound traffic.
**Rules **Allow Only. You cannot explicitly "Deny" an IP. **Allow and Deny. You can block specific IPs (e.g., a known attacker).
**Use Case Primary defense. Used for every resource. Secondary defense. Used for blocking specific threats or creating DMZs.

Creation of Amazon VPC (Virtual Private Cloud)

Follow the steps mentioned below to configure Virtual Private Cloud(VPC)

**Step 1: Login into AWS Console and navigate to the VPC as shown below.

AWS Console VPC

**Step 2: After navigating to the AWS VPC now click on create VPC.

Create VPC

**Step 3: Configure all the details required to create as shown in the image below. Some of the most required settings to configure VPC are as follows

Create VPC

**Step 4: Virtual Private Cloud created successfully with the required settings.

VPC Created

**Step 5: Check the VPC dashboard whether the VPC created is available to use as shown in the image below GFG-VPC.

image-(2)

AWS VPC Console

To create and manage a Virtual Private Cloud (VPC) in AWS, follow these steps:

  1. Log in to your AWS account.
  2. Once inside the AWS Management Console, click on the “Services” menu at the top.
  3. From the list of categories, navigate to “Networking & Content Delivery”.
  4. Select “VPC” from the options provided.

After selecting VPC, you will be redirected to the VPC dashboard. On the left-hand side, the navigation pane displays various options and services related to VPC management.

Refer to the image attached below for a better understanding.

VPC resources

VPC Endpoints for accessing AWS Services Privately

If your private EC2 instance needs to talk to S3 or DynamoDB, it shouldn't go over the public internet. VPC Endpoints allow private communication.

1. Gateway Endpoints

Use cases

Best Practices

  1. **Avoid Overlapping CIDRs: Never use the same IP range (e.g., 10.0.0.0/16) for two VPCs you might want to peer later.
  2. **Use Private Subnets for Apps: Only Load Balancers and Bastion Hosts should be in public subnets. App servers and databases belong in private subnets.
  3. **Flow Logs: Always enable **VPC Flow Logs. They capture information about the IP traffic going to and from network interfaces in your VPC, which is essential for troubleshooting and security auditing.