AWS VPC identify private and public subnet : <p>I have a VPC in AWS account and there are 5 subnets associated with that VPC. Subnets are of 2 types - Public and private. How to identify which subnet is public and which is private ? Each subnet has CIDR 10.249.?.? range.</p>

<p>Basically when I launch an EMR in that subnet with lists of ec2SubnetIds , it says 
***The subnet configuration was invalid: Provided subnet list contains both public and private subnet. Only one type of subnet is allowed.</p>

<hr>

<p>How to recify this error.</p>
