Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know a EC2 instance is EC2 Classic or EC2 VPC instance?

I have a list of EC2 instances in my AWS account. So how could I identify whether an instance is a EC2-Classic or is a EC2-VPC type of instance?

like image 833
Debesh Nayak Avatar asked Feb 15 '16 06:02

Debesh Nayak


1 Answers

EC2-VPC instance will have VPC ID and Subnet ID attributes, the EC2-Classic one will not have it.

If you are using the dashboard, look for VPC ID or Subnet ID attribute. If using SDK/API, the VPC instances will have vpc_id and subnet_id attributes defined.

like image 182
helloV Avatar answered Sep 22 '22 13:09

helloV