本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
列出并查看图片详细信息
本节介绍了可以查找 EC2 Image Builder 映像的信息和查看详细信息的各种方法。
列出镜像 (Amazon CLI)
以下示例说明了如何列出您有权访问的所有镜像版本。
aws imagebuilder list-images
列出镜像构建版本 (Amazon CLI)
以下示例说明了如何列出具有特定语义版本的镜像生成版本。
aws imagebuilder list-image-build-versions --image-version-arn arn:aws:imagebuilder:us-west-
2:123456789012
:image/my-example-image
/2019.12.03
要了解有关 Image Builder 资源语义版本的更多信息,请参阅语义版本控制.
获取 AMI 映像 (Amazon CLI)
要检查镜像进度,请使用 get-image
操作。get-image
返回有关镜像、元数据、当前状态和输出资源(如果可用)的详细信息。
aws imagebuilder get-image --image-build-version-arn arn:aws:imagebuilder:us-west-
2:123456789012
:image/my-example-recipe
/2019.12.03/1
获取镜像策略详细信息 (Amazon CLI)
以下示例说明了如何指定镜像策略的 Amazon 资源名称 (ARN) 以获取镜像策略详细信息。
aws imagebuilder get-image-policy --image-arn arn:aws:imagebuilder:us-west-
2:123456789012
:image/my-example-image
/2019.12.02