Skip to content

How to Retrieve AWS ECS Cluster Information

For more information about the Amazon ECS cluster, run the following command. You will find the number of running tasks, capacity providers, and more. 

aws ecs describe-clusters --cluster <your-fargate-cluster>
Code language: Bash (bash)

Sample output:

{ "clusters": [ { "clusterArn": "arn:aws:ecs:us-east-2:123456789012:cluster/<your-fargate-cluster>", "clusterName": "fargate-getting-started", "status": "ACTIVE", "registeredContainerInstancesCount": , "runningTasksCount": 3, "pendingTasksCount": , "activeServicesCount": 1, "statistics": [], "tags": [], "settings": [], "capacityProviders": [ "FARGATE", "FARGATE_SPOT" ], "defaultCapacityProviderStrategy": [] } ], "failures": [] }
Code language: JSON / JSON with Comments (json)

See also  How to get CPU Frequency in Linux
Tags:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x