Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save 9to6/1a5a3f0f613ff4bb46851113222c68de to your computer and use it in GitHub Desktop.
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.
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