Home > database >  How to identify public and private subnet in AWS?
How to identify public and private subnet in AWS?

Time:10-26

I have joined project. Subnets are not properly named. So how to identify public and private subnet in vpc?

How can route table help me? Can someone please check?

CodePudding user response:

Public subnets are those that have a route to the internet gateway. Private ones are those which don't have such a route.

CodePudding user response:

To identify whether a subnet is a Public Subnet:

  • In the VPC management console, click on the subnet
  • Click on the Route table tab

If there is an entry with a Destination of 0.0.0.0/0 that points to igw-xxxx, then it is sending traffic for the internet through an Internet Gateway. This makes it a Public Subnet.

For example:

VPC Subnet Route Table

  • Related