Created
January 9, 2018 14:48
-
-
Save bashtoni/a3100fd0e8f8c716694516e267a10b3d to your computer and use it in GitHub Desktop.
List all instances not in an autoscaling group
This file contains hidden or 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 --filter --query 'Reservations[].Instances[?!not_null(Tags[?Key == `aws:autoscaling:groupName`].Value)] | [].[InstanceId]' --output text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment