Skip to content

Instantly share code, notes, and snippets.

@kenzo0107
Last active November 7, 2023 06:27
Show Gist options
  • Save kenzo0107/ce981a61495108e9b839337b119bdb41 to your computer and use it in GitHub Desktop.
Save kenzo0107/ce981a61495108e9b839337b119bdb41 to your computer and use it in GitHub Desktop.
Display a list of EC2 instance names.
aws ec2 describe-instances --query 'Reservations[*].Instances[*].Tags[?Key == `Name`].Value' --output text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment