Skip to content

Instantly share code, notes, and snippets.

@epower
Created October 27, 2014 11:57
Show Gist options
  • Save epower/7c5f4236868505c2bc88 to your computer and use it in GitHub Desktop.
Save epower/7c5f4236868505c2bc88 to your computer and use it in GitHub Desktop.
#!/bin/bash
aws ec2 describe-instances --filters "Name=tag:Name, Values=EP_*" --query 'Reservations[].Instances[].[Tags[?Key==`Name`] | [0]. Value, State.Name, InstanceId]' --output table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment