pcluster describe-cluster-instances
Describe the instances in a cluster.
pcluster describe-cluster-instances [-h] --cluster-nameCLUSTER_NAME[--debug] [--next-tokenNEXT_TOKEN] [--node-type {HeadNode,ComputeNode,LoginNode}] [--queryQUERY] [--queue-nameQUEUE_NAME] [--regionREGION]
Named arguments
-h, --help-
Shows the help text for
pcluster describe-cluster-instances. --cluster-name, -nCLUSTER_NAME-
Specifies the name of the cluster.
--debug-
Enables debug logging.
--next-tokenNEXT_TOKEN-
The token for the next set of results.
--node-type {HeadNode,ComputeNode,LoginNode}-
Specifies the node types to list. Supported values are
HeadNode,ComputeNodeandLoginNode. If this parameter is not specified, theHeadNode,ComputeNodeandLoginNodea instances are described. --queryQUERY-
Specifies the JMESPath query to perform on the output.
--queue-nameQUEUE_NAME-
Specifies the name of the queue to list. If this parameter is not specified, instances in all queues are described.
--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 describe-cluster-instances -ncluster-v3{ "instances": [ { "launchTime": "2022-07-12T17:22:21.000Z", "instanceId": "i-1234567890abcdef0", "publicIpAddress": "198.51.100.44", "instanceType": "t2.micro", "state": "running", "nodeType": "HeadNode", "privateIpAddress": "192.0.2.0.196" }, { "launchTime": "2022-07-12T17:37:42.000Z", "instanceId": "i-021345abcdef6789", "queueName": "queue1", "publicIpAddress": "198.51.100.44", "instanceType": "t2.micro", "state": "pending", "nodeType": "ComputeNode", "privateIpAddress": "192.0.2.0.196" }, { "launchTime": "2022-07-12T17:37:42.000Z", "instanceId": "i-021345abcdef6789", "poolName": "pool1", "publicIpAddress": "198.51.100.44", "instanceType": "t2.micro", "state": "pending", "nodeType": "loginNode", "privateIpAddress": "192.0.2.0.196" } ] }