Sharing Your Paid AMI with Select Users or the Public
After you associate the product code with the AMI, you need to share the AMI with
select customers or the public by using the
ec2-modify-image-attribute command.
To share the AMI
Enter the following command:
PROMPT> ec2-modify-image-attribute <ami_id> --launch-permission -a all
The <ami_id> is the AMI ID.
Even though you've shared the AMI, no one can use it until they sign up for your product
by going to the purchase URL. Once customers sign up, any instances of the paid AMI they
launch will be billed at the rate you specified during product registration.
Example
The following example shares the ami-2bb65342 AMI with the public.
PROMPT> ec2-modify-image-attribute ami-2bb65342 --launch-permission -a all
launchPermission ami-2bb65342 ADD group all