Prev Question
Next Question

Which of the below mentioned commands allows the user to share the AMI with his peers using the AWS EC2 CLI?

A.
ec2-share-image-public

B.
ec2-share-image-account

C.
ec2-share-image

D.
ec2-modify-image-attribute

Explanation:
A user can share an AMI with another user / peer using the command:
ec2-modify-image-attribute <AMI-ID> -l -a <AWS Account ID>
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-explicit.html

Prev Question
Next Question

Leave a Reply

Your email address will not be published. Required fields are marked *