pcluster list-clusters
Retrieve the list of existing clusters.
pcluster list-clusters [-h] [--cluster-status {CREATE_IN_PROGRESS,CREATE_FAILED,CREATE_COMPLETE,DELETE_IN_PROGRESS,DELETE_FAILED,UPDATE_IN_PROGRESS,UPDATE_COMPLETE,UPDATE_FAILED} [{CREATE_IN_PROGRESS,CREATE_FAILED,CREATE_COMPLETE,DELETE_IN_PROGRESS,DELETE_FAILED,UPDATE_IN_PROGRESS,UPDATE_COMPLETE,UPDATE_FAILED} ...]] [--debug] [--next-tokenNEXT_TOKEN] [--queryQUERY] [--regionREGION]
Named arguments
-h, --help-
Shows the help text for
pcluster list-clusters. --cluster-status {CREATE_IN_PROGRESS,CREATE_FAILED,CREATE_COMPLETE,DELETE_IN_PROGRESS,DELETE_FAILED,UPDATE_IN_PROGRESS,UPDATE_COMPLETE,UPDATE_FAILED} [{CREATE_IN_PROGRESS,CREATE_FAILED,CREATE_COMPLETE,DELETE_IN_PROGRESS,DELETE_FAILED,UPDATE_IN_PROGRESS,UPDATE_COMPLETE,UPDATE_FAILED} ...]-
Specifies the list of cluster statuses to filter for. (Defaults to
all.) --debug-
Enables debug logging.
--next-tokenNEXT_TOKEN-
The token for the next set of results.
--queryQUERY-
Specifies the JMESPath query to perform on the output.
--region, -rREGION-
Specifies the AWS Region to use. The AWS Region must be specified, using the
AWS_DEFAULT_REGIONenvironment variable, theregionsetting in the[default]section of the~/.aws/configfile, or the--regionparameter.
Example using AWS ParallelCluster version 3.1.4:
$pcluster list-clusters{ "clusters": [ { "clusterName": "cluster-v3", "cloudformationStackStatus": "CREATE_COMPLETE", "cloudformationStackArn": "arn:aws:cloudformation:us-east-1:123456789012:stack/cluster-v3/1234abcd-56ef-78gh-90ij-abcd1234efgh", "region": "us-east-1", "version": "3.1.4", "clusterStatus": "CREATE_COMPLETE" } ] }