Created
October 18, 2020 08:19
-
-
Save lavk7/d01a1bee89b97df4898d1258ef369f43 to your computer and use it in GitHub Desktop.
list-cluster-by-tag
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 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