Is it possible to get platform and OS information from EC2 instances

+1 vote

I want to extract some information from EC2 instances. I want to know if it's possible to get the type of operating system and the version running on an EC2 instance. 

I will like to know if this is possible using the SDK. I tried with Python SDK Boto3 but no results.

Feb 4, 2019 in AWS by datageek
• 3,090 points
9,745 views

3 answers to this question.

+1 vote
Best answer

Yes it is possible to get the information you are looking for just follow the steps below:-

Select your instance 

Go to Action

Click on Instance setting 

Click on Get instance screenshot.

Once you refresh the Screenshot it will then show you the actual OS Information.

Hope this helps.

answered Feb 6, 2019 by Priyaj
• 58,020 points

selected May 14, 2019 by Kalgi
But I think @datageek is asking how to get those details from the CLI...

@datageek, is there any reason why you want to see it only from CLI? Its not like you won't have access to the AWS dashboard anyway...
+1 vote

Yes, I tried it using Python SDK Boto3 too. No results. Neither with Amazon CLI. 

Then I found out AWS SDK and CLI can help you get information that is available at the hypervisor level. But what we are asking is available inside the VM not at hypervisor. With CLI the closes you can get is to find out the AMI image-id for each instance.

answered Feb 4, 2019 by Archana
• 5,640 points
+2 votes
Yes ,
Due to security and privacy policies AWS does not have access to customers instance in any way, therefore it is not possible for AWS to get operating system information from within the instance and display it in console via API's
Collect all the image information of that particular user account. then map that image id with that aws instance's image id . So you can get OS related information as desc or image name .
answered May 14, 2019 by anonymous
That totally makes sense. It would be nice if you shared some documentation proving this point. Thank you!

Related Questions In AWS

0 votes
1 answer

Is it possible to get EC2 account balance programmatically

You can't, unfortunately, neither AWS nor any ...READ MORE

answered May 13, 2019 in AWS by Archana
• 5,640 points
836 views
+2 votes
3 answers

Is it possible to ping AWS EC2 instance

1.Go to EC2 Dashboard and click "Running ...READ MORE

answered Nov 13, 2020 in AWS by shivam
• 140 points

edited Nov 13, 2020 by Gitika 20,528 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Is it possible to access kubernetes guestbook application from browser?

this link helped : https://github.com/GoogleCloudPlatform/kubernetes/issues/6158 see hack solution by ...READ MORE

answered Sep 26, 2018 in AWS by Priyaj
• 58,020 points
2,623 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP