OneCompiler

How to know the instance type of an AWS machine?

When I am inside an AWS machine, how to know the instance type of that AWS machine?

1 Answer

6 years ago by

You can hit http://169.254.169.254/latest/meta-data/instance-type to know the instance type.

ubuntu@ip-17x-xx-x-xxx:~$ curl http://169.254.169.254/latest/meta-data/instance-type
t2.large
6 years ago by Karthik Divi