

# List and view infrastructure configuration details
<a name="infra-config-details"></a>

This section describes the various ways that you can find information and view details for your EC2 Image Builder infrastructure configurations.

**Topics**
+ [List infrastructure configurations](#list-infrastructure-configurations)
+ [Get infrastructure configuration details](#get-infrastructure-configuration-details)

## List infrastructure configurations
<a name="list-infrastructure-configurations"></a>

------
#### [ Console ]

To see a list of the infrastructure configurations created under your account in the Image Builder console, follow these steps:

1. Open the EC2 Image Builder console at [https://console.aws.amazon.com/imagebuilder/](https://console.aws.amazon.com/imagebuilder/).

1. Choose **Infrastructure configuration** from the navigation pane. This shows a list of the infrastructure configurations that are created under your account.

------
#### [ AWS CLI ]

The following example shows how to list all of your infrastructure configurations, using the [list-infrastructure-configurations](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/imagebuilder/list-infrastructure-configurations.html) command in the AWS CLI.

```
aws imagebuilder list-infrastructure-configurations
```

To narrow the results, use the `--filters` option. You can filter by `name`. The following example returns infrastructure configurations whose name matches the value that you specify.

```
aws imagebuilder list-infrastructure-configurations --filters name=name,values={{my-example-infrastructure-configuration}}
```

If you have many infrastructure configurations, Image Builder returns results one page at a time. Use `--max-results` to control the page size. If the response includes a `nextToken` value, pass it with `--next-token` to retrieve the next page.

```
aws imagebuilder list-infrastructure-configurations --max-results 10
```

------
#### [ PowerShell ]

The following example shows how to use the [Get-EC2IBInfrastructureConfigurationList](https://docs.aws.amazon.com/powershell/latest/reference/items/Get-EC2IBInfrastructureConfigurationList.html) cmdlet to list all of your infrastructure configurations:

```
Get-EC2IBInfrastructureConfigurationList
```

------

## Get infrastructure configuration details
<a name="get-infrastructure-configuration-details"></a>

------
#### [ Console ]

To view the details for a specific infrastructure configuration in the Image Builder console, follow these steps:

1. Open the EC2 Image Builder console at [https://console.aws.amazon.com/imagebuilder/](https://console.aws.amazon.com/imagebuilder/).

1. Choose **Infrastructure configuration** from the navigation pane.

1. Choose the **Configuration name** link for the infrastructure configuration that you want to view. This opens the detail page, where you can review its settings.

------
#### [ AWS CLI ]

The following example shows how to use the [get-infrastructure-configuration](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/imagebuilder/get-infrastructure-configuration.html) command in the AWS CLI to get the details of an infrastructure configuration by specifying its Amazon Resource Name (ARN):

```
aws imagebuilder get-infrastructure-configuration --infrastructure-configuration-arn arn:aws:imagebuilder:{{us-west-2}}:{{111122223333}}:infrastructure-configuration/{{my-example-infrastructure-configuration}}
```

------
#### [ PowerShell ]

The following example shows how to use the [Get-EC2IBInfrastructureConfiguration](https://docs.aws.amazon.com/powershell/latest/reference/items/Get-EC2IBInfrastructureConfiguration.html) cmdlet to get the details of an infrastructure configuration by specifying its Amazon Resource Name (ARN):

```
Get-EC2IBInfrastructureConfiguration -InfrastructureConfigurationArn arn:aws:imagebuilder:{{us-west-2}}:{{111122223333}}:infrastructure-configuration/{{my-example-infrastructure-configuration}}
```

------