1 |
aws ec2 describe-instances | jq -r '.Reservations[].Instances[] | [.InstanceId, (.Tags[] | select(.Key=="Name").Value),.State.Name] | @csv' |
1 2 |
"i-0bea566068a15007b","Server1","stopped" "i-04752c2087caa6f62","Server2","running" |