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?
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?
2
Answers
Public subnets are those that have a route to the internet gateway. Private ones are those which don’t have such a route.
To identify whether a subnet is a Public Subnet:
If there is an entry with a Destination of
0.0.0.0/0
that points toigw-xxxx
, then it is sending traffic for the internet through an Internet Gateway. This makes it a Public Subnet.For example: