本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
pcluster get-image-stack-events
检索与指定映像构建的堆栈关联的事件。
pcluster get-image-stack-events [-h] --image-idIMAGE_ID[--debug] [--next-tokenNEXT_TOKEN] [--queryQUERY] [--regionREGION]
命名的参数
-h, --help- 
      
显示
pcluster get-image-stack-events的帮助文本。 --image-id, -iIMAGE_ID- 
      
指定映像的 ID。
 --debug- 
      
启用调试日志记录。
 --next-tokenNEXT_TOKEN- 
      
用于获取下一组结果的令牌。
 --queryQUERY- 
      
指定要对输出执行的 JMESPath 查询。
 --region, -rREGION- 
      
指定 Amazon Web Services 区域 要使用的。 Amazon Web Services 区域 必须使用
AWS_DEFAULT_REGION环境变量、~/.aws/config文件[default]部分中的region设置或--region参数来指定。 
使用 Amazon ParallelCluster 版本 3.1.2 的示例:
$pcluster get-image-stack-events --image-idcustom-alinux2-image--regionus-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" }