ec2-describe-image-attribute From Amazon Elastic Compute Cloud: 2008-12-01 previous page next page ec2-describe-image-attributeSyntax ec2-describe-image-attribute ami_id ( -l | -p ) Description Describes an attribute for the specified AMI. OptionsOptionDescriptionRequiredami_idAMI identifier. Example: ami-4fa54026 Yes-B, --block-device-mappingDescribes the mapping that defines native device names to use when exposing virtual devices. Type: String No-l, --launch-permissionDescribes the launchPermission attribute. Example: -l Choice-p, --product-codeDescribes the productCodes attribute. Example: -p Choice--kernelDescribes the ID of the kernel associated with the AMI. Type: String No--ramdiskDescribes the ID of the RAM disk associated with the AMI. Type: String NoOutput Amazon EC2 returns a table that contains the following information: Attribute type identifierID of the AMI.Attribute value type or attribute list item value type.Attribute or attribute list item value. Amazon EC2 displays errors on stderr. ExamplesThis 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 495219933132This example lists the product code for the ami-2bb65342 AMI.PROMPT> ec2-describe-image-attribute ami-2bb65342 -p productCodes ami-2bb65342 productCode 774F4FF8Related Topics DescribeImageAttribute ec2-modify-image-attribute ec2-reset-image-attribute Sharing AMIs previous page start next page