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.
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": []
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With