| Did this page help you? Yes No Tell us about it... |
Returns information about an attribute of an AMI. You can get information about only one attribute per call.
The short version of this command is ec2dimatt.
ec2-describe-image-attribute
ami_id {-l | -p | -B | --kernel | --ramdisk}
| Name | Description | Required |
|---|---|---|
|
|
The ID of the AMI for which an attribute will be described. Type: String Default: None Example: ami-4fa54026 |
Yes |
|
|
Describes the launch permissions of the AMI. Type: String Default: None Example: -l |
No |
|
|
Describes the product code associated with the AMI. Type: String Default: None Example: -p |
No |
|
|
Describes the mapping that defines native device names to use when exposing virtual devices. Type: String Default: None Example: -B |
No |
|
|
Describe the kernel ID the AMI will be launched with. Type: String Default: None Example: --kernel |
No |
|
|
Describe the RAM disk ID the AMI will be launched with. Type: String Default: None Example: -ramdisk |
No |
| Option | Description |
|---|---|
|
|
Overrides the Region specified in the Default: The Example: |
|
|
Default: The Example: |
|
|
The private key to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
The X.509 certificate to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
Specifies a connection timeout (in seconds). Example: --connection-timeout 30 |
|
|
Specifies a request timeout (in seconds). Example: --request-timeout 45 |
|
|
Displays verbose output by showing the SOAP request and response on the command line. This is particularly useful if you are building tools to talk directly to our SOAP API. |
|
|
Displays column headers in the output. |
|
|
Shows empty columns as |
|
|
Do not display tags for tagged resources. |
|
|
Prints internal debugging information. This is useful to assist us when troubleshooting problems. |
|
|
Displays Help. |
|
|
If Example: |
The command returns a table that contains the following information:
Attribute type identifier
ID of the AMI
Information about the attribute
Amazon EC2 command line tools display errors on stderr.
This example lists the launch permissions for the ami-61a54008 AMI
PROMPT>ec2-describe-image-attribute ami-2bb65342 -llaunchPermission ami-2bb65342 group alllaunchPermission ami-2bb65342 userId 495219933132
This example lists the product code for the ami-2bb65342 AMI.
PROMPT>ec2-describe-image-attribute ami-2bb65342 -pproductCodes ami-2bb65342 productCode 774F4FF8
This example describes the RAM disk for the ami-d5ed03bc AMI, with the --show-empty-fields option.
PROMPT>ec2-describe-image-attribute ami-d5ed03bc --ramdisk --show-empty-fieldsramdisk ami-d5ed03bc (nil) ari-96c527ff