Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find the OS of a running EC2 instance?

I looked at attributes of the EC2 instance, but did not get a clear attribute value that identifies the same.

I also, saw the following discussion, but Im wondering whether identifying the os/platform has been simplified by aws since this disscusion. How to find OS of an EC2 instance using AWS CLI

like image 507
Alwyn - Numino Labs Avatar asked Feb 26 '18 17:02

Alwyn - Numino Labs


People also ask

What OS does EC2 run on?

Recent research indicates that Amazon's EC2 cloud is made up of almost half-a-million servers--each of them running a variation of Red Hat Linux for their base operating system.

How do I identify an EC2 instance on Windows?

For information about identifying Windows instances, see Identify EC2 Windows instances in the Amazon EC2 User Guide for Windows Instances . For a definitive and cryptographically verified method of identifying an EC2 instance, check the instance identity document, including its signature.

How do I Find my AWS EC2 OS or version number?

From the Amazon EC2 console, you can use one of the following three methods to check the OS or version number: View the Platform details or AMI ID information. View the instance's console logs or screenshot. View platform information for AWS Systems Manager Managed instances. Select the instance.

How to find out what OS an instance is on?

Your best bet is to look up the ami which will be in the "Description" tab of the instance. However, if the ami is private or derived from another ami then you won't be able to. The "Platform" tag is only helpful to identify if the OS is windows (or linux if not set).

How to see active EC2 resources in Amazon EC2 console?

I launched an Amazon Elastic Compute Cloud (Amazon EC2) instance, but I can't see it in the Amazon EC2 console. You can use the AWSSupport-ListEC2Resources AWS Systems Manager Automation document to list your active EC2 resources.


1 Answers

From Terminal inside EC2 instance: $ cat /etc/os-release

like image 64
Dave Fort Avatar answered Sep 22 '22 12:09

Dave Fort