pcluster get-cluster-stack-events
Retrieve the events associated with the stack for the specified cluster.
Note
Starting in version 3.6.0, Amazon ParallelCluster uses nested stacks to create the resources associated with queues and compute resources. The
GetClusterStackEvents API and the pcluster get-cluster-stack-events command only return the cluster main stack events.
You can view the cluster stack events, including those related to queues and compute resources, in the CloudFormation console.
pcluster get-cluster-stack-events [-h] --cluster-nameCLUSTER_NAME[--debug] [--next-tokenNEXT_TOKEN] [--queryQUERY] [--regionREGION]
Named arguments
-h, --help-
Shows the help text for
pcluster get-cluster-stack-events. --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.
--queryQUERY-
Specifies the JMESPath query to perform on the output.
--region, -rREGION-
Specifies the Amazon Web Services Region to use. The Amazon Web Services Region must be specified, using the
AWS_DEFAULT_REGIONenvironment variable, theregionsetting in the[default]section of the~/.aws/configfile, or the--regionparameter.
Example using Amazon ParallelCluster version 3.1.4:
$pcluster get-cluster-stack-events \ -ncluster-v3\ -rus-east-1\ --query"events[0]"{ "eventId": "1234abcd-56ef-78gh-90ij-abcd1234efgh", "physicalResourceId": "arn:aws:cloudformation:us-east-1:123456789012:stack/cluster-v3/1234abcd-56ef-78gh-90ij-abcd1234efgh", "resourceStatus": "CREATE_COMPLETE", "stackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/cluster-v3/1234abcd-56ef-78gh-90ij-abcd1234efgh", "stackName": "cluster-v3", "logicalResourceId": "cluster-v3", "resourceType": "AWS::CloudFormation::Stack", "timestamp": "2022-07-12T18:29:12.140Z" }