Skip to content

Instantly share code, notes, and snippets.

@lavk7
Created October 18, 2020 08:19
Show Gist options
  • Save lavk7/d01a1bee89b97df4898d1258ef369f43 to your computer and use it in GitHub Desktop.
Save lavk7/d01a1bee89b97df4898d1258ef369f43 to your computer and use it in GitHub Desktop.
list-cluster-by-tag
aws ecs describe-clusters --cluster `aws ecs list-clusters --query 'clusterArns[]' --output text` --include TAGS --query 'clusters[?contains(tags[].value, `MY_TAG_VALUE`)].clusterName' --output text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment