你们知道我们是否可以使用命令行显示EC2实例类型吗?
当前,我只能访问EC2实例的命令行。是否可以输入命令行以显示实例的类型。例如p2.8xLarge
或g.16x
等
答案 0 :(得分:5)
是-您可以使用meta-data
端点通过命令行检索有关EC2实例类型的信息:
> curl http://169.254.169.254/latest/meta-data/instance-type
t1.micro
See this page for more information about the available commands.