How to Retrieve AWS ECS Cluster Information

0 min read 67 words

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>

Sample output:

{
    "clusters": [
        {
            "clusterArn": "arn:aws:ecs:us-east-2:123456789012:cluster/<your-fargate-cluster>",
            "clusterName": "fargate-getting-started",
            "status": "ACTIVE",
            "registeredContainerInstancesCount": 0,
            "runningTasksCount": 3,
            "pendingTasksCount": 0,
            "activeServicesCount": 1,
            "statistics": [],
            "tags": [],
            "settings": [],
            "capacityProviders": [
                "FARGATE",
                "FARGATE_SPOT"
            ],
            "defaultCapacityProviderStrategy": []
        }
    ],
    "failures": []
}
Tags:
Andrew
Andrew

Andrew is a visionary software engineer and DevOps expert with a proven track record of delivering cutting-edge solutions that drive innovation at Ataiva.com. As a leader on numerous high-profile projects, Andrew brings his exceptional technical expertise and collaborative leadership skills to the table, fostering a culture of agility and excellence within the team. With a passion for architecting scalable systems, automating workflows, and empowering teams, Andrew is a sought-after authority in the field of software development and DevOps.

Tags