Skip to content

Instantly share code, notes, and snippets.

@mvasilenko
Created January 24, 2024 08:25
Show Gist options
  • Save mvasilenko/fc9f31c67ac99aa45ca7c44bbe511754 to your computer and use it in GitHub Desktop.
Save mvasilenko/fc9f31c67ac99aa45ca7c44bbe511754 to your computer and use it in GitHub Desktop.
list AWS EC2 instances with names
aws ec2 describe-instances --query 'Reservations[].Instances[].[PrivateIpAddress,Tags[?Key==`Name`].Value[]]' --output text | sed '$!N;s/\n/ /'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment