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
where <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-5bae4b32 AMI with the public:
PROMPT> ec2-modify-image-attribute ami-5bae4b32 --launch-permission -a all
launchPermission ami-5bae4b32 ADD group all