Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hootieben/d42b961a5d112b166c0d8489d267084a to your computer and use it in GitHub Desktop.
Save hootieben/d42b961a5d112b166c0d8489d267084a to your computer and use it in GitHub Desktop.
AWS Cli Cheatsheat
# Get all running AWS instances by count
aws ec2 describe-instances --filters "Name=instance-state-name,Values=running" | jq -r ".Reservations[] | .Instances[] | .InstanceType" | sort -d |uniq -c | sort -bnr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment