本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
列出并查看组件详细信息
本节介绍如何查找在 I EC2 mage Builder 配方中使用的 AWS Task Orchestrator and Executor (AWSTOE) 组件的信息并查看其详细信息。
列出 Image Builder 组件
您可以使用以下方法之一来列出和筛选 Image Builder 组件。
列出来自的组件编译版本 AWS CLI
以下示例说明了如何使用 list-component-build-versions
aws imagebuilder list-component-build-versions --component-version-arn arn:aws:imagebuilder:
us-west-2:123456789012
:component/example-component
/1.0.1{ "requestId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", "componentSummaryList": [ { "arn": "arn:aws:imagebuilder:us-west-2:123456789012:component/examplecomponent/1.0.1/1", "name": "examplecomponent", "version": "1.0.1", "platform": "Linux", "type": "BUILD", "owner": "123456789012", "description": "An example component that builds, validates and tests an image", "changeDescription": "Updated version.", "dateCreated": "2020-02-19T18:53:45.940Z", "tags": { "KeyName": "KeyValue" } } ] }
从中获取组件详细信息 AWS CLI
以下示例说明在指定组件的 Amazon 资源名称 (ARN) 时如何使用get-component
aws imagebuilder get-component --component-build-version-arn arn:aws:imagebuilder:us-west-
2:123456789012
:component/example-component
/1.0.1/1{ "requestId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11112", "component": { "arn": "arn:aws:imagebuilder:us-west-2:123456789012:component/examplecomponent/1.0.1/1", "name": "examplecomponent", "version": "1.0.1", "type": "BUILD", "platform": "Linux", "owner": "123456789012", "data": "name: HelloWorldTestingDocument\ndescription: This is hello world testing document... etc.\"\n", "encrypted": true, "dateCreated": "2020-09-24T16:58:24.444Z", "tags": {} } }
从中获取组件策略的详细信息 AWS CLI
以下示例说明在指定组件策略时如何使用get-component-policy
aws imagebuilder get-component-policy --component-arn arn:aws:imagebuilder:us-west-
2:123456789012
:component/example-component
/1.0.1