CmdID

CmdID / aws / aws ecs

aws ecs list-clusters

Returns a list of existing clusters. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To list your available clusters

The following list-clusters example lists all of the available clusters.

aws ecs list-clustersIdentify
Its 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

2 in the AWS CLI reference
--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.