published: true
description: "What subnets are, what really makes a subnet public or private, and how to design a secure, highly available layout with NAT Gateway and multiple AZs."
tags: aws, devops, networking, beginners
canonical_url: https://builder.aws.com/content/3MXQwuqymaOqnqiH4c1ivRd4oHd/aws-public-vs-private-subnets-explained-design-a-secure-network-step-by-step
This article was first published on AWS Builder Center. Sharing it here for the dev.to community.
Introduction
In my last post I explained VPCs and CIDR blocks. Once you have a VPC, the next step is dividing it into subnets . This is where most security decisions are made: which servers can be reached from the internet, and which ones stay hidden.
Many beginners think a subnet is "public" or "private" because of its name. It is not.β¦