Skip to content

Instantly share code, notes, and snippets.

View johntoups's full-sized avatar

John Toups johntoups

View GitHub Profile

Using aws-cli and jq

list all instances for all ASGs

aws autoscaling describe-auto-scaling-instances \
  | jq '.AutoScalingInstances[] | {AutoScalingGroupName, InstanceId}'

list instance IDs for a particular ASG