Menu

1 / 4

Public vs Private Subnets in AWS Explained for Beginners

DEV Community·Vijaya Laxmi Kadham·5 months ago
#V2oON3ds
#dev#subnet#subnets#photo#article
Reading 0:00
15s threshold

When learning AWS networking, one of the most important concepts to understand is the difference between:

Public Subnet

Private Subnet

At first these terms may sound confusing. But once you understand how internet access works inside a VPC, the concept becomes very simple.

In this article, we will understand:

What a subnet is

What public and private subnets are

How internet access works in AWS

What a Load Balancer does

How routing works

Real-world architecture examples

What is a Subnet?

A subnet is a smaller network created inside a VPC.

When we create a VPC, AWS gives us a large IP address range called a CIDR Block .

Example: 192.168.0.0/16

Instead of using the entire IP block, we divide it into smaller sections called Subnets .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.