Created
September 23, 2020 11:30
-
-
Save mjaromi/5e3de869a5dca9e584adc7e4cafb0461 to your computer and use it in GitHub Desktop.
Show serviceName / placementConstraints.type/expression for ECS services running on $ECS_CLUSTER_NAME cluster
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 list-services --cluster $ECS_CLUSTER_NAME | jq -r '.serviceArns[]' | while read service ; do | |
aws ecs describe-services --services $service --cluster $ECS_CLUSTER_NAME | jq -r '.services[] | "\(.serviceName) - \(.placementConstraints[].type) - \(.placementConstraints[].expression)"' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment