pcluster get-cluster-stack-events - Amazon ParallelCluster
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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-name CLUSTER_NAME [--debug] [--next-token NEXT_TOKEN] [--query QUERY] [--region REGION]

Named arguments

-h, --help

Shows the help text for pcluster get-cluster-stack-events.

--cluster-name, -n CLUSTER_NAME

Specifies the name of the cluster.

--debug

Enables debug logging.

--next-token NEXT_TOKEN

Specifies the token to use for paginated requests.

--query QUERY

Specifies the JMESPath query to perform on the output.

--region, -r REGION

Specifies the Amazon Web Services Region to use. The Amazon Web Services Region must be specified, using the AWS_DEFAULT_REGION environment variable, the region setting in the [default] section of the ~/.aws/config file, or the --region parameter.

Example using Amazon ParallelCluster version 3.1.4:

$ pcluster get-cluster-stack-events \ -n cluster-v3 \ -r us-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" }