本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
pcluster get-cluster-stack-events
擷取與指定叢集之堆疊相關聯的事件。
注意
從 3.6.0 版開始, AWS ParallelCluster 會使用巢狀堆疊來建立與佇列和運算資源相關聯的資源。GetClusterStackEvents API 和 pcluster get-cluster-stack-events命令只會傳回叢集主要堆疊事件。您可以在 CloudFormation 主控台中檢視叢集堆疊事件,包括與佇列和運算資源相關的事件。
pcluster get-cluster-stack-events [-h] --cluster-nameCLUSTER_NAME[--debug] [--next-tokenNEXT_TOKEN] [--queryQUERY] [--regionREGION]
具名引數
-h, --help-
顯示 的說明文字
pcluster get-cluster-stack-events。 --cluster-name, -nCLUSTER_NAME-
指定叢集的名稱。
--debug-
啟用偵錯記錄。
--next-tokenNEXT_TOKEN-
下一組結果的字符。
--queryQUERY-
指定要在輸出上執行的 JMESPath 查詢。
--region, -rREGION-
指定 AWS 區域 要使用的 。 AWS 區域 必須使用
AWS_DEFAULT_REGION環境變數、~/.aws/config檔案[default]區段中的region設定或--region參數來指定 。
使用 3.1.4 AWS ParallelCluster 版的範例:
$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" }