I run this command: aws ecs describe-clusters
which output this result:
{
"clusters": [],
"failures": [
{
"reason": "MISSING",
"arn": "arn:aws:ecs:us-east-2:---------:cluster/default"
}
]
}
But in https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/clusters I have a cluster.
Why I can't see my cluster details in aws ecs command?
if you don't pass the cluster's parameter then it will return the error above
= for example
aws ecs describe-clusters --clusters name-of-the-cluster
You must pass the name of the cluster as well.
eg
aws ecs describe-clusters --clusters "name-of-your-cluster"
{
"clusters": [
{
"status": "ACTIVE",
"statistics": [],
"tags": [],
"clusterName": "xxxx",
"registeredContainerInstancesCount": 1,
"pendingTasksCount": 0,
"runningTasksCount": 2,
"activeServicesCount": 1,
"clusterArn": "arn:aws:ecs:ap-south-1:xxxxx"
}
],
"failures": []
}
Reference: https://docs.aws.amazon.com/cli/latest/reference/ecs/describe-clusters.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.