Home/Glossary/Virtual Private Cloud (VPC)

Virtual Private Cloud (VPC)

An isolated virtual network within a cloud provider where you can launch resources with control over IP addressing, subnets, and routing.

Cloud SecurityAlso called: "virtual network", "vnet", "cloud network"

A VPC provides network isolation and control in cloud environments, forming the foundation of cloud network security.

VPC components

  • Subnets: IP address ranges within the VPC (public or private).
  • Route tables: Rules for directing network traffic.
  • Internet gateway: Enables internet access for public subnets.
  • NAT gateway: Allows private subnet resources to reach internet.
  • Security groups: Stateful instance-level firewalls.
  • Network ACLs: Stateless subnet-level firewalls.

Security best practices

  • Use private subnets for databases and internal services.
  • Implement security groups with least-privilege rules.
  • Enable VPC Flow Logs for network visibility.
  • Use VPC endpoints for private access to cloud services.
  • Implement network segmentation between workloads.

Provider terminology

  • AWS: VPC (Virtual Private Cloud)
  • Azure: VNet (Virtual Network)
  • GCP: VPC (Virtual Private Cloud)

Advanced features

  • VPC Peering: Connect VPCs across accounts or regions.
  • Transit Gateway: Hub-and-spoke network architecture.
  • PrivateLink/Private Endpoints: Private connectivity to services.
  • VPC Service Controls (GCP): Data exfiltration prevention.