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

posta 10 mesi fa559 visualizzazioni
2 Risposte
0
profile pictureAWS
ESPERTO
con risposta 10 mesi fa
  • 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
ESPERTO
kentrad
con risposta 10 mesi fa
profile pictureAWS
ESPERTO
verificato 10 mesi fa
profile picture
ESPERTO
verificato 10 mesi fa
  • 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 []

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande