ec2-describe-image-attribute ami_id ( -l | -p )
ami_id
Describes an attribute for the specified AMI.
AMI identifier.
Example: ami-4fa54026
ami-4fa54026
Yes
-B, --block-device-mapping
-B
--block-device-mapping
Describes the mapping that defines native device names to use when exposing virtual devices.
Type: String
No
-l, --launch-permission
-l
--launch-permission
Describes the launchPermission attribute.
launchPermission
Example: -l
Choice
-p, --product-code
-p
--product-code
Describes the productCodes attribute.
productCodes
Example: -p
--kernel
Describes the ID of the kernel associated with the AMI.
--ramdisk
Describes the ID of the RAM disk associated with the AMI.
Amazon EC2 returns a table that contains the following information:
Attribute type identifier
ID of the AMI.
Attribute value type or attribute list item value type.
Attribute or attribute list item value.
Amazon EC2 displays errors on stderr.
stderr
This example lists the launch permissions for the ami-2bb65342 AMI.
PROMPT> ec2-describe-image-attribute ami-2bb65342 -l launchPermission ami-2bb65342 group all launchPermission ami-2bb65342 userId 495219933132
PROMPT>
launchPermission ami-2bb65342 group all launchPermission ami-2bb65342 userId 495219933132
This example lists the product code for the ami-2bb65342 AMI.
PROMPT> ec2-describe-image-attribute ami-2bb65342 -p productCodes ami-2bb65342 productCode 774F4FF8
productCodes ami-2bb65342 productCode 774F4FF8
ec2-modify-image-attribute
ec2-reset-image-attribute
Sharing AMIs
Submit feedback about this site to: