Skip to content

AWS Network ( Virtual Private Cloud )

Shailesh Gupta edited this page May 4, 2025 · 1 revision

A Virtual Private Cloud (VPC) provides a secure, isolated section of AWS where you can launch AWS resources in a virtual network that you define. VPCs enable you to isolate resources, ensuring that one customer's data remains separate from another's—even within the same AWS account—and allow you to securely segment different applications.

Within a VPC, you have full control over your networking environment. You can:

Define custom IP addressing through subnetting. Configure routing tables to control packet flow within your account. Use security features such as Security Groups and Network Access Control Lists (NACLs) to manage traffic flow. Customize inbound and outbound traffic using various types of gateways.

Regional Isolation and VPC Deployment

When you create a VPC, you must specify a single AWS region for its deployment. For instance, you might have VPC1 in the US East 1 region and VPC2 in US East 2. Each VPC exists solely within its designated region, preventing cross-region communication unless specifically configured.

The Role of CIDR Blocks in VPCs

Each VPC is assigned a range of IP addresses via its Classless Inter-Domain Routing (CIDR) block. For example, a VPC with a CIDR block of 192.168.0.0/16 can assign any IP address within that range to its resources. The allowed block sizes vary from a /16 (65,536 addresses) to a /28.

ypes of VPCs

When working with VPCs, you typically encounter two types:

Default VPC Custom VPC Default VPC

A default VPC is automatically created by AWS when a new account is set up. Each region comes with a default VPC, pre-configured to allow immediate internet connectivity for your instances. This ready-to-use configuration lets you deploy servers without investing time in complex networking setups.

Custom VPC

Custom VPCs are created and fully configured by you. When you set up a custom VPC, you define:

The CIDR block Subnets and their IP addressing Routing configurations Network access rules using security groups and NACLs

Summary

To summarize the key points:

VPCs are a foundational element of AWS networking, providing isolated environments for deploying resources. Each VPC exists within a single AWS region, enhancing security and network segmentation. A VPC’s network is defined by its CIDR block, which restricts the range of assignable IP addresses. AWS provides a default VPC per region with pre-configured subnets, an internet gateway, a security group, and a NACL. The default VPC uses the CIDR block 172.31.0.0/16, with each availability zone having one default subnet.

Clone this wiki locally