CmdID

CmdID / aws / aws ec2

aws ec2 enable-image-block-public-access

Enables block public access for AMIs at the account level in the specified Amazon Web Services Region. AWS CLI reference

2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

2 in the AWS CLI reference
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.
--image-block-public-access-stateSpecify block-new-sharing to enable block public access for AMIs at the account level in the specified Region.