Do you guys know if we can display the EC2 instance type using command line?
Currently, I only have access to the command line of an EC2 instance. Is there a command line that I can type to display the type of instance. eg, p2.8xLarge
or g.16x
etc.
To find an instance type using the consoleOpen the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . From the navigation bar, select the Region in which to launch your instances. You can select any Region that's available to you, regardless of your location. In the navigation pane, choose Instance Types.
Amazon EC2 provides a wide selection of instance types optimized to fit different use cases. Instance types comprise varying combinations of CPU, memory, storage, and networking capacity and give you the flexibility to choose the appropriate mix of resources for your applications.
Yes - you can use the meta-data
endpoint to retrieve information about your EC2 instance type via the command line:
> curl http://169.254.169.254/latest/meta-data/instance-type
t1.micro
See this page for more information about the available commands.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With