query all EC2 instances for OS

0

Hello No access to the the individual systems running under my AWS, last admin didn't give PEM files. is there a way to query what OS(windows) is installed/running on each EC2? using CLI?

thanks

已提问 10 个月前561 查看次数
2 回答
0
profile pictureAWS
专家
已回答 10 个月前
  • No access to the instances.

0

Here is an AWS CLI command to get the platform:

aws ec2 describe-instances \
    --query Reservations[*].Instances[*].[InstanceId,ImageId,PlatformDetails] \
    --output table

You can get further details about the platform:

aws ec2 describe-images \
    --image-ids ami-0d2f97c8735a48a15 \
    --query Images[*].[ImageId,Name,Description] \
    --output table
profile pictureAWS
专家
kentrad
已回答 10 个月前
profile pictureAWS
专家
已审核 10 个月前
profile picture
专家
已审核 10 个月前
  • thanks for the windows servers its having issue returning the OS build. [cloudshell-user@ip-172-4-83-86 ~]$ aws ec2 describe-images --image-ids ami-********** --query Images[*].Description []

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

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

回答问题的准则