Created
February 24, 2018 04:09
-
-
Save 9to6/1a5a3f0f613ff4bb46851113222c68de to your computer and use it in GitHub Desktop.
To find Aws opsworks instances without specific tags using aws-cli and jq.
This file contains 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 --profile=default --region=us-east-1 ec2 describe-instances | jq -c '.[][].Instances[] | select(contains({Tags: [{Key: "MeltdownPatch"} ]}) | not)| .Tags[] | select(.Key == "opsworks:instance") | .Value ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment