public subnet
A subnet whose route table sends its default route to an internet gateway, so resources with public addresses can be reached from the internet.
In more detail
Only things that must accept connections from the internet, such as a load balancer or a NAT gateway, belong here. Public describes a route, not safety: security groups still decide which packets are accepted.
Related terms
- private subnet — A subnet with no route to an internet gateway, so nothing on the internet can start a connection to resources inside it.
- internet gateway — The VPC component that connects public subnets to the internet in both directions.
- route table — A list of destinations and next hops that decides where packets leaving a subnet go.
Taught in
- The Public Subnet That Was Not — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Forty Eight Of Sixty Five — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- The Network As A Control: CIDR, Routes, ACLs And Security Groups — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Private Paths: VPC Endpoints And PrivateLink — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Network Cost: NAT Gateways, Zones And Data Out — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Long-Stem Clinic: The Phrase That Decides — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Virtual Private Clouds — Cloud Infrastructure & Hyperscaler Architecture
- Subnets: Public and Private — Cloud Infrastructure & Hyperscaler Architecture
- Network Address Translation — Cloud Infrastructure & Hyperscaler Architecture
- Load Balancing and DNS — Cloud Infrastructure & Hyperscaler Architecture