Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"aws ecs describe-clusters" doesn't return the cluster

In the AWS Console, I created a cluster, task definition and repository for deploying my docker image. Then I created an IAM user and tried to list the clusters I have by calling

aws ecs describe-clusters

It returns me

{
    "clusters": [], 
    "failures": [
        {
            "reason": "MISSING", 
            "arn": "arn:aws:ecs:us-east-1:XXXXXXXXXXX:cluster/default"
        }
    ]
 }

Listing clusters also returns me empty array,

aws ecs list-clusters

Any help on this would be appreciated.

like image 777
Vishnu Sankaran Avatar asked Oct 20 '25 20:10

Vishnu Sankaran


1 Answers

Perhaps a bit late and I hope it helps somebody.

First you need to list your clusters

$ aws ecs list-clusters
{
    "clusterArns": [
        "arn:aws:ecs:<aws_region>:<accn_id>:cluster/cumbancha-cluster"
    ]
}

Then, grab the cluster name from the previous output (in this case cumbancha-cluster) and try describe-clusters command again

$ aws ecs describe-clusters --cluster cumbancha-cluster
{
    "clusters": [
        {
            "clusterArn": "arn:aws:ecs:<aws_region>:<accn_id>:cluster/cumbancha-cluster",
            "clusterName": "cumbancha-cluster",
            "status": "ACTIVE",
            "registeredContainerInstancesCount": 1,
            "runningTasksCount": 3,
            "pendingTasksCount": 0,
            "activeServicesCount": 3,
            "statistics": [],
            "tags": [],
            "settings": [
                {
                    "name": "containerInsights",
                    "value": "disabled"
                }
            ],
            "capacityProviders": [],
            "defaultCapacityProviderStrategy": []
        }
    ],
    "failures": []
}
like image 58
slackmart Avatar answered Oct 23 '25 09:10

slackmart



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!