Making an AMI Public

To make an AMI public

To check the launch permissions of an AMI

To make an AMI private again

Example

This example makes the ami-2bb65342 AMI public.

PROMPT>  ec2-modify-image-attribute ami-2bb65342  --launch-permission -a all
launchPermission        ami-2bb65342    ADD     group   all

This examples displays the launch permissions of the ami-2bb65342 AMI.

PROMPT> ec2-describe-image-attribute ami-2bb65342 -l
launchPermission        ami-2bb65342    group   all

This example removes the all group from the permissions of the ami-2bb65342 AMI, making it private.

PROMPT> ec2-modify-image-attribute ami-2bb65342 -l -r all
launchPermission        ami-2bb65342    REMOVE  group   all