pcluster describe-image - Amazon ParallelCluster
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 Amazon Web Services 服务入门

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

pcluster describe-image

获取有关图像的详细信息。

pcluster describe-image [-h] --image-id IMAGE_ID [--debug] [--query QUERY] [--region REGION]

命名参数

-h, --help

显示的帮助文本pcluster describe-image.

--image-id, -i IMAGE_ID

指定图像的 ID。

--debug

启用调调调调调调调调

--query QUERY

指定要对输出执行的 JMESPath 查询。

--region, -r REGION

指定Amazon Web Services 区域使用。必须使用指定区域AWS_DEFAULT_REGION环境变量region设置[default]Lin部分~/.aws/config文件,或--region参数。

使用的示例Amazon ParallelCluster版本 3.1.2

$ pcluster describe-image --image-id custom-alinux2-image { "imageConfiguration: { "url": "https://parallelcluster-1234abcd5678-v1-do-not-delete.../configs/image-config.yaml" }, "imageId": "custom-alinux2-image", "creationTime": "2022-04-05T20:23:07.000Z" "imageBuildStatus": "BUILD_COMPLETE", "region": "us-east-1", "ec2AmiInfo": { "amiName": "custom-alinux2-image 2022-04-05T19-55-22.518Z", "amiId": "ami-1234abcd5678efgh", "description": "AWS ParallelCluster AMI for alinux2, kernel-4.14.268-205.500.amzn2.x86_64, lustre-2.10.8-5.amzn2.x86_64, efa-1.14.2-1.amzn2.x86_64, dcv-2021.3.11591-1.el7.x86_64, slurm-21-08-6-1", "state": "AVAILABLE", "tags": [ { "value": "arn:aws:imagebuilder:us-east-1:123456789012:image/parallelclusterimage-custom-alinux2-image/3.1.2/1", "key": "Ec2ImageBuilderArn" }, { "value": "parallelcluster-1234abcd5678efgh-v1-do-not-delete", "key": "parallelcluster:s3_bucket" }, { "value": "custom-alinux2-image", "key": "parallelcluster:image_name" }, { "value": "available", "key": "parallelcluster:build_status" }, { "value": "s3://parallelcluster-1234abcd5678efgh-v1-do-not-delete/parallelcluster/3.1.2/images/custom-alinux2-image-1234abcd5678efgh/configs/image-config.yaml", "key": "parallelcluster:build_config" }, { "value": "EC2 Image Builder", "key": "CreatedBy" }, { "value": "arn:aws:logs:us-east-1:123456789012:log-group:/aws/imagebuilder/ParallelClusterImage-custom-alinux2-image", "key": "parallelcluster:build_log" }, { "value": "4.14.268-205.500.amzn2.x86_64", "key": "parallelcluster:kernel_version" }, { "value": "arn:aws:imagebuilder:us-east-1:444455556666:image/amazon-linux-2-x86/2022.3.16/1", "key": "parallelcluster:parent_image" }, { "value": "3.1.2", "key": "parallelcluster:version" }, { "value": "0.5.14", "key": "parallelcluster:munge_version" }, { "value": "21-08-6-1", "key": "parallelcluster:slurm_version" }, { "value": "2021.3.11591-1.el7.x86_64", "key": "parallelcluster:dcv_version" }, { "value": "alinux2-image", "key": "parallelcluster:image_id" }, { "value": "3.2.3", "key": "parallelcluster:pmix_version" }, { "value": "parallelcluster/3.2.1/images/alinux2-image-abcd1234efgh56781234", "key": "parallelcluster:s3_image_dir" }, { "value": "1.14.2-1.amzn2.x86_64", "key": "parallelcluster:efa_version" }, { "value": "alinux2", "key": "parallelcluster:os" }, { "value": "aws-parallelcluster-cookbook-3.1.2", "key": "parallelcluster:bootstrap_file" }, { "value": "1.8.23-10.amzn2.1.x86_64", "key": "parallelcluster:sudo_version" }, { "value": "2.10.8-5.amzn2.x86_64", "key": "parallelcluster:lustre_version" } ], "architecture": "x86_64" }, "version": "3.1.2" }