Skip to main content

Amazon Subnets

Public SubnetPublic Subnet
Private SubnetPrivate Subnet

AWS Subnets are essentially segments of your VPC, allowing you to divide your VPC into smaller, manageable sections. A subnet is a range of IP addresses in your VPC.

tip

Subnet is a section of a VPC for grouping resources based on security or operational needs

  • Subnets are used to logically isolate resources within a VPC
  • Each subnet is associated with a specific range of IP addresses, and resources within that subnet use these addresses.

Public Vs Private​

  • Public Subnets: are designed to isolate resources that shouldn't be directly exposed to the public internet. In diagrams, they are illustrated with solid boxes.
  • Private Subnets: Public subnets are designed to provide direct internet access to resources placed inside them. To allow access, they are connected with an internet gateway. You will learn more about internet gateways in a later lesson. In diagrams, public subnets are drawn with dashed boxes.
Availability Zones