Overview
Subnets allow you to group resources within a VPC based on security and operational needs. Each subnet resides within a single Availability Zone and cannot span multiple zones.
Types of Subnets
- Public Subnet: Has a route to an Internet Gateway, allowing resources within it to be accessed from the internet.
- Private Subnet: Does not have a direct route to the internet. Resources in a private subnet typically use a NAT Gateway for outbound internet access.
Key Functions
- Isolation: Provides a layer of security by separating public-facing resources from private ones.
- IP Management: Allows for efficient allocation of IP addresses within the VPC.