pcluster get-image-stack-events - AWS ParallelCluster

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

pcluster get-image-stack-events

擷取與指定映像組建之堆疊相關聯的事件。

pcluster get-image-stack-events [-h] --image-id IMAGE_ID [--debug] [--next-token NEXT_TOKEN] [--query QUERY] [--region REGION]

命名參數

-h, --help

顯示的說明文字pcluster get-image-stack-events

--image-id, -i IMAGE_ID

指定影像的識別碼。

--debug

啟用偵錯記錄。

--next-token NEXT_TOKEN

指定要用於分頁請求的權杖。

--query QUERY

指定要在輸出上執行的 JMESPath 查詢。

--region, -r REGION

指定 AWS 區域 要使用的。 AWS 區域 必須使用AWS_DEFAULT_REGION環境變數、~/.aws/config檔案[default]區段中的region設定或--region參數來指定。

使用 AWS ParallelCluster 版本 3.1.2 的示例:

$ pcluster get-image-stack-events --image-id custom-alinux2-image --region us-east-1 --query "events[0]" { "eventId": "ParallelClusterImage-CREATE_IN_PROGRESS-2022-04-05T21:39:24.725Z", "physicalResourceId": "arn:aws:imagebuilder:us-east-1:123456789012:image/parallelclusterimage-custom-alinux2-image/3.1.2/1", "resourceStatus": "CREATE_IN_PROGRESS", "resourceStatusReason": "Resource creation Initiated", "resourceProperties": "{\"InfrastructureConfigurationArn\":\"arn:aws:imagebuilder:us-east-1:123456789012:infrastructure-configuration/parallelclusterimage-1234abcd-56ef-78gh-90ij-abcd1234efgh\",\"ImageRecipeArn\":\"arn:aws:imagebuilder:us-east-1:123456789012:image-recipe/parallelclusterimage-custom-alinux2-image/3.1.2\",\"DistributionConfigurationArn\":\"arn:aws:imagebuilder:us-east-1:123456789012:distribution-configuration/parallelclusterimage-1234abcd-56ef-78gh-90ij-abcd1234efgh\",\"EnhancedImageMetadataEnabled\":\"false\",\"Tags\":{\"parallelcluster:image_name\":\"custom-alinux2-image\",\"parallelcluster:image_id\":\"custom-alinux2-image\"}}", "stackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/custom-alinux2-image/1234abcd-56ef-78gh-90ij-abcd1234efgh", "stackName": "custom-alinux2-image", "logicalResourceId": "ParallelClusterImage", "resourceType": "AWS::ImageBuilder::Image", "timestamp": "2022-04-05T21:39:24.725Z" }