Listing AWS EC2 instance information ℹ️ with AWS CLI v2
For example, to get list of AWS EC2 instances with their private IP address, instance ID and their name, do this -
$ aws ec2 describe-instances \
--output json \
| jq '.Reservations[].Instances[] | { Id: .InstanceId, IP: .PrivateIpAddress, Name: ...
karuppiah.dev3 min read