How can you find out the OS running on an EC2 instance using AWS CLI.
The ec2 describe-instance command spits out a lot of information , but there is n
Here's a quick way to list the Platform field, which at least distinguishes between Windows and Linux:
aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId,Platform]' --output text
i-78b4ef47 windows
i-b8ae3386 windows
i-9d3611a2 None
i-1c57c651 windows
i-a241ec91 None
i-7d26b630 None