AWS instance Operating System Version

0

I am seeking a method of verifying the detailed Operating System (OS) version of a group of AWS Instances so that I can assess and plan for OS updates.

The console currently notes Windows, Linux, OSX but not specific versions.

MikeH
已提问 6 个月前576 查看次数
1 回答
3

Hello,

I will give you some details about how to get the OS level information in different ways so that you can take your decision accordingly if that can be used for your use case.

https://aws.amazon.com/premiumsupport/knowledge-center/ec2-linux-find-os-platform-or-version/

Referring the above doc mention three ways to check the OS versions,

  1. View the Platform details or AMI ID information.
  2. View the instance's console logs or screenshot.

However for both of these methods you need to manually check the information using the AWS console for each of your instance, additionally note that as already mentioned AWS has limited visibility into the software or OS that's running on an instance. This means that AWS can't provide specific OS-related information. AWS predicts the information in the Platform details field based on the AMI name and description. Because of this, the listed platform isn't always accurate for the preceding two methods. If the console logs are enabled by default, then the logs usually show the OS and version that your instance uses.

Now coming to the third method mentioned which is bit more informative,

  1. View platform information for AWS Systems Manager Managed instances.

Here you can use ssm describe-instances-information command to get the platform based information however this can only be used for managed instances and even in this case you will not get the exact OS version you will get a general OS type name for example - Ubuntu, SLES, Amazon Linux AMI, However making all instances managed in your account just to know these details might not be feasible for you.

[+] https://docs.aws.amazon.com/cli/latest/reference/ssm/describe-instance-information.html

AWS
支持工程师
已回答 6 个月前
profile pictureAWS
专家
已审核 6 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容