本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
列出和檢視元件詳細資訊
本節說明如何尋找您在 EC2 Image Builder 配方中使用的 AWS 任務協調器和執行器 (AWS TOE) 元件的資訊和檢視詳細資訊。
列出 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 Resource Name () 時,如何使用 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