I am trying get some information from my AWS EC2 instances. I will like to know if there is a way to pull information like:
| Platform | Version |
|-----------|---------------:|
| CentOS | 6.0 or 7.0 |
| Ubuntu | 10.04 or 12.04 |
| Windows | |
I will like to know if this is possible using the SDK. I tried with Python SDK Boto3 but no results.
It is not possible with SDK or CLI unless you have stored that information as
tags
. AWS SDK and CLI can help you get information that are available at the hypervisor level. But what you are asking is available inside the VM not at hypervisor.While the following CLI command can help you a bit, but there is no guarantee you will get the platform information for all instances.