pcluster describe-image - AWS ParallelCluster

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

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

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

使用 3.1.2 AWS ParallelCluster 版的範例:

$ 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:amzn-s3-demo-bucket" }, { "value": "custom-alinux2-image", "key": "parallelcluster:image_name" }, { "value": "available", "key": "parallelcluster:build_status" }, { "value": "s3://amzn-s3-demo-bucket/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" }