本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
pcluster describe-image
获取有关映像的详细信息
pcluster describe-image [-h] --image-id
IMAGE_ID
[--debug] [--query QUERY] [--regionREGION
]
命名的参数
-h, --help
-
显示
pcluster describe-image
的帮助文本。 --image-id, -i
IMAGE_ID
-
指定映像的 ID。
--debug
-
启用调试日志记录。
--query
QUERY
-
指定要对输出执行的 JMESPath 查询。
--region, -r
REGION
-
指定 AWS 区域 要使用的。 AWS 区域 必须使用
AWS_DEFAULT_REGION
环境变量、~/.aws/config
文件[default]
部分中的region
设置或--region
参数来指定。
使用 AWS 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": "Amazon 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.7.0/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" }