What is the difference between a public subnet and a private subnet in a VPC?

AWS Cloud Practitioner Medium

AWS Cloud Practitioner — Medium

What is the difference between a public subnet and a private subnet in a VPC?

Key points

  • Public subnets connect to the internet via an Internet Gateway
  • Private subnets have no direct route to the internet
  • Public subnets are used for resources that need internet access
  • Private subnets are isolated for internal resources

Ready to go further?

Related questions