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

preguntada hace 10 meses560 visualizaciones
2 Respuestas
0
profile pictureAWS
EXPERTO
respondido hace 10 meses
  • 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
EXPERTO
kentrad
respondido hace 10 meses
profile pictureAWS
EXPERTO
revisado hace 10 meses
profile picture
EXPERTO
revisado hace 10 meses
  • 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 []

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas