aws ec2 reset-image-attribute
Resets an attribute of an AMI to its default value. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To reset the launchPermission attribute
The following reset-image-attribute example resets the launchPermission attribute for the specified AMI to its default value. By default, AMIs are private.
aws ec2 reset-image-attribute --image-id ami-5731123e --attribute launchPermissionIdentify--image-idThe ID of the AMI.--attributeThe attribute to reset (currently you can only reset the launch permission attribute).This command produces no output.
For more information, see Share an AMI with specific AWS accounts in the Amazon EC2 User Guide.
Options
--attributeThe attribute to reset (currently you can only reset the launch permission attribute).--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--image-idThe ID of the AMI.