List and view component details
This section describes how you can find information and view details for the components that you use in your EC2 Image Builder recipes.
Component details
List Image Builder components
You can use one of the following methods to list and filter Image Builder components.
- Console
-
To display a list of components in the AWS Management Console, follow these steps:
-
Open the EC2 Image Builder console at https://console.aws.amazon.com/imagebuilder/
. -
Select Components from the navigation pane. By default, Image Builder shows a list of components that your account owns.
-
You can optionally filter on component ownership. To see components that you don't own, but have access to, expand the owner type dropdown list and select one of the values. The owner type list is located in the search bar, next to the search text box. You can select from the following values:
-
AWS Marketplace – Components that are associated directly with an AWS Marketplace product subscription.
-
Quick start (Amazon managed) – Publicly available components that Amazon creates and maintains.
-
Owned by me – Components that you created. This is the default selection.
-
Shared with me – Components that others created and shared with you from their account.
-
Third party managed – Components that a third party owns that you subscribed to in AWS Marketplace.
-
-
- AWS CLI
-
The following example shows how to use the list-components
command to return a list of Image Builder components that your account owns. aws imagebuilder list-componentsYou can optionally filter on component ownership. The owner attribute defines who owns the components that you want to list. By default, this request returns a list of components that your account owns. To filter the results by component owner, specify one of the following values with the
--ownerparameter when you run the list-components command.Component owner values
-
AWSMarketplace -
Amazon -
Self -
Shared -
ThirdParty
The following examples show the list-components command with the
--ownerparameter to filter results.aws imagebuilder list-components --owner Self{ "requestId": "012a3456-b789-01cd-e234-fa5678b9012b", "componentVersionList": [ { "arn": "arn:aws:imagebuilder:us-west-2:123456789012:component/sample-component01/1.0.0", "name": "sample-component01", "version": "1.0.0", "platform": "Linux", "type": "BUILD", "owner": "123456789012", "dateCreated": "2020-09-24T16:58:24.444Z" }, { "arn": "arn:aws:imagebuilder:us-west-2:123456789012:component/sample-component01/1.0.1", "name": "sample-component01", "version": "1.0.1", "platform": "Linux", "type": "BUILD", "owner": "123456789012", "dateCreated": "2021-07-10T03:38:46.091Z" } ] }aws imagebuilder list-components --owner Amazonaws imagebuilder list-components --owner Sharedaws imagebuilder list-components --owner ThirdPartyWhen you list components with the
--owner AWSMarketplacevalue, you can filter the results by product code. Specify theproductCodesfilter with a value in the formatmarketplace:, as shown in the following example:productCodeIdaws imagebuilder list-components --owner AWSMarketplace --filters name=productCodes,values=marketplace:examplecode123Note
Image Builder returns AWS Marketplace component ARNs under the
aws-marketplacenamespace, with an owner ofAWSMarketplace. When you call get-component for an AWS Marketplace component, the response includes the owner but omits the component data. The component data is available only when the calling build instance is entitled to the product. -
- PowerShell
-
The following example shows how to use the Get-EC2IBComponentList cmdlet to return a list of Image Builder components that your account owns:
Get-EC2IBComponentListYou can optionally filter on component ownership. By default, this request returns a list of components that your account owns. To filter the results by component owner, choose one of the following values for the
-Ownerparameter:Component owner values
-
AWSMarketplace -
Amazon -
Self -
Shared -
ThirdParty
The following examples use the
Get-EC2IBComponentListcmdlet with the-Ownerparameter to filter the results by component owner:Get-EC2IBComponentList -Owner SelfGet-EC2IBComponentList -Owner AmazonGet-EC2IBComponentList -Owner SharedGet-EC2IBComponentList -Owner ThirdPartyWhen you list components with the
-Owner AWSMarketplacevalue, you can filter the results by product code. Specify theproductCodesfilter with a value in the formatmarketplace:, as shown in the following example:productCodeIdGet-EC2IBComponentList -Owner AWSMarketplace ` -Filter @{Name="productCodes";Values="marketplace:examplecode123"}Note
Image Builder returns AWS Marketplace component ARNs under the
aws-marketplacenamespace, with an owner ofAWSMarketplace. When you get the details for an AWS Marketplace component, the response includes the owner but omits the component data. The component data is available only when the calling build instance is entitled to the product. -
List component build versions
- AWS CLI
-
The following example shows how to use the list-component-build-versions
command to list component build versions that have a specific semantic version. To learn more about semantic versioning for Image Builder resources, see Semantic versioning in Image Builder. To list the build versions, specify the component version ARN, as shown in the following example:
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" } } ] } - PowerShell
-
The following example shows how to use the Get-EC2IBComponentBuildVersionList cmdlet to list component build versions that have a specific semantic version. To learn more about semantic versioning for Image Builder resources, see Semantic versioning in Image Builder.
To list the build versions, specify the component version ARN, as shown in the following example:
Get-EC2IBComponentBuildVersionList -ComponentVersionArn arn:aws:imagebuilder:us-west-2:123456789012:component/example-component/1.0.1
Get component details
- AWS CLI
-
The following example shows how to use the get-component
command to get component details when you specify the component's Amazon Resource Name (ARN): 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": {} } } - PowerShell
-
The following example shows how to use the Get-EC2IBComponent cmdlet to get component details when you specify the component's Amazon Resource Name (ARN):
Get-EC2IBComponent -ComponentBuildVersionArn arn:aws:imagebuilder:us-west-2:123456789012:component/example-component/1.0.1/1
Get component policy details
- AWS CLI
-
The following example shows how to use the get-component-policy
command to get details of a component policy when you specify the component's ARN: aws imagebuilder get-component-policy --component-arn arn:aws:imagebuilder:us-west-2:123456789012:component/example-component/1.0.1 - PowerShell
-
The following example shows how to use the Get-EC2IBComponentPolicy cmdlet to get details of a component policy when you specify the component's ARN:
Get-EC2IBComponentPolicy -ComponentArn arn:aws:imagebuilder:us-west-2:123456789012:component/example-component/1.0.1