Monday, March 13, 2023
HomeSoftware EngineeringThe right way to Retrieve AWS ECS Cluster Info

The right way to Retrieve AWS ECS Cluster Info


For extra details about the Amazon ECS cluster, run the next command. You can find the variety of working duties, capability suppliers, and extra. 

aws ecs describe-clusters --cluster <your-fargate-cluster>

Pattern 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": []
}
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments