Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

How to check vpc is private or public?

1 Answer(s) Available
Answer # 1 #

So, to determine if a given subnet is public or private, you need to describe the route table that is associated with that subnet. That will tell you the routes and you can test for a 0.0. 0.0/0 route with a gateway ID of igw-xxxxxxxxxxxxxxxxx (as opposed to local ). Here, you can see a destination route of 0.0.

[3]
Edit
Query
Report
Tris Anbeh
Spotlight Operator