Hi@akhtar,
You can find one keyword --query in your AWS CLI. This keyword allows you to find particular values. You can use the blow given example. It will find all the InstacncId and ImageId.
C:\Users\NADIM AKTHAR>aws ec2 describe-instances --query Reservations[*].Instances[*].[InstanceId,ImageId]
[
[
[
"i-06e0d316abeb7fca4",
"ami-0447a12f28fddb066"
]
],
[
[
"i-0995dbee8a1dd7169",
"ami-0447a12f28fddb066"
]
]
]
Hope this will give you some idea.