Skip to content

Latest commit

 

History

History
2 lines (2 loc) · 297 Bytes

aws-cli-commands.md

File metadata and controls

2 lines (2 loc) · 297 Bytes

To list all the instances in a region along with their ID, Instance type, Private IP address, and their name in tabular format on CLI

  • aws ec2 describe-instances --query 'Reservations[].Instances[].[InstanceId, InstanceType, PrivateIpAddress, Tags[?Key==Name]|[0].Value]' --output table