Created
January 24, 2024 08:25
-
-
Save mvasilenko/fc9f31c67ac99aa45ca7c44bbe511754 to your computer and use it in GitHub Desktop.
list AWS EC2 instances with names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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