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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠