Hi@akhtar,
By default AWS gives output in json format. But you can use --output keyword in your command to filter in yaml format. Yu can use the given examle.
C:\Users\NADIM AKTHAR>aws ec2 describe-instances --query Reservations[*].Instances[*].["InstanceId"] --output yaml
- - - i-06e0d316abeb7fca4
- - - i-0995dbee8a1dd7169
Hope this will help you