AWS Builder Center

Amazon VPC Explained for Beginners

New to AWS? This beginner-friendly guide explains Amazon VPC, subnets, route tables, Internet Gateway, NAT Gateway, and Security Groups in simple language with practical examples.

Introduction

Cloud networking is one of the most important concepts in AWS, and Amazon Virtual Private Cloud (Amazon VPC) is the foundation of it.
Amazon VPC allows you to create your own private network in the AWS Cloud, giving you complete control over how your resources communicate with each other and with the internet.
Whether you're launching an EC2 instance, creating an RDS database, or deploying a web application, all these resources are typically placed inside a VPC.

What is Amazon VPC ?

Amazon Virtual Private Cloud (Amazon VPC) is a networking service that allows you to create an isolated virtual network within AWS. Once you understand its basic components, designing secure and scalable cloud networks becomes much easier.
Key Benefits
Complete control over your network
Improved security
Better resource isolation
Flexible network design
Easy scalability.
Key Components of Amazon VPC
CIDR Block basically the CIDR block is a method used to define the range of IP addresses and no of devices allowed in a network. ex. 10.0.0.0/16 /16 is a CIDR no where we get 65,535 addresses
CIDR
Total IP Addresses
Usable IPs (General Networking)
Common Use
/16
65,536
65,534
Large Network / VPC
/17
32,768
32,766
Large Network
/18
16,384
16,382
Medium-Large Network
/19
8,192
8,190
Medium Network
/20
4,096
4,094
Medium Network
/21
2,048
2,046
Medium Network
/22
1,024
1,022
Small Network
/23
512
510
Small Network
/24
256
254
Standard LAN / Small Subnet
/25
128
126
Small Subnet
/26
64
62
Very Small Subnet
/27
32
30
Small Office
/28
16
14
Tiny Network
Subnets Subnet is a concept where a large network divided into small sub-networks so it can be efficient, manage and easy to use. It divides the VPC into multiple sections, allowing you to organize resources based on their purpose and security requirements.
Amazon VPC supports two main types of subnets:
Public Subnet
A Public Subnet is connected to the internet through an Internet Gateway (IGW). Resources placed in a public subnet can communicate directly with the internet.
Private Subnet
A Private Subnet does not have direct internet access. Resources inside a private subnet are protected from incoming internet traffic, making them more secure.
Why Use Both Public and Private Subnets?
A common AWS architecture uses both subnet types:
Public Subnet hosts internet-facing resources like web servers and load balancers.
Private Subnet hosts sensitive resources like databases and backend applications.
This design improves both security and network organization.
Route Table
A Route Table is a set of rules that controls where network traffic should go.
It helps AWS decide how resources inside your VPC communicate with each other and with the internet.
For example:
If traffic is meant for the internet, the Route Table sends it to the Internet Gateway.
If traffic is for resources inside the VPC, it stays within the VPC.
Internet Gateway (IGW)
An Internet Gateway (IGW) allows communication between your VPC and the internet.
If you want your EC2 instance to access the internet or allow users to access your application, you need to attach an Internet Gateway to your VPC.
Security Groups
A Security Group acts as a virtual firewall for your AWS resources.
It controls who can access your resources and which traffic is allowed.
For example:
Port 22 – SSH access
Port 80 – HTTP
Port 443 – HTTPS
By allowing only the required ports, Security Groups help keep your resources secure.
A simple Amazon VPC architecture looks like this:
By combining all these components, we can build a fully functional and secure Amazon VPC. ✅
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article