Skip to content

Instantly share code, notes, and snippets.

@markymarkus
Created January 19, 2021 09:11
Show Gist options
  • Save markymarkus/5ac034c0f7942f8e6f73a2ad10ca12d0 to your computer and use it in GitHub Desktop.
Save markymarkus/5ac034c0f7942f8e6f73a2ad10ca12d0 to your computer and use it in GitHub Desktop.
aws autoscaling describe-auto-scaling-groups --query 'AutoScalingGroups[?contains(Tags[?Key==`tag_key`].Value, `tag_value`)].[AutoScalingGroupName]'
# If the tag value is true it must be escaped with "
aws autoscaling describe-auto-scaling-groups --query 'AutoScalingGroups[?contains(Tags[?Key==`tag_key`].Value, `"true"`)].[AutoScalingGroupName]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment