aws ecs list-clusters
Returns a list of existing clusters. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To list your available clusters
The following list-clusters example lists all of the available clusters.
aws ecs list-clustersIdentifyIts output
{
"clusterArns": [
"arn:aws:ecs:us-west-2:123456789012:cluster/MyECSCluster1",
"arn:aws:ecs:us-west-2:123456789012:cluster/AnotherECSCluster"
]
}For more information, see Amazon ECS clusters in the Amazon ECS Developer Guide.
Options
--max-resultsThe maximum number of cluster results that ListClusters returned in paginated output.--next-tokenThe nextToken value returned from a ListClusters request indicating that more results are available to fulfill the request and further calls are needed.