CmdID

CmdID / aws / aws ec2

aws ec2 enable-image-deprecation

Enables deprecation of the specified AMI at the specified date and time. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

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

Examples

from aws-cli, each command read by CmdID

To deprecate an AMI

The following enable-image-deprecation example deprecates an AMI on a specific date and time. If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute. You must be the AMI owner to perform this procedure.

aws ec2 enable-image-deprecation --image-id ami-1234567890abcdef0 --deprecate-at '2022-10-15T13:17:12.000Z'Identify
--image-idThe ID of the AMI.
--deprecate-atThe date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.
Its output
{
    "Return": true
}

For more information, see Deprecate an AMI in the Amazon EC2 User Guide.

Options

3 in the AWS CLI reference
--deprecate-atThe date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.
--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.