File: //usr/local/aws-cli/v2/dist/awscli/examples/ec2/restore-image-from-recycle-bin.rst
**To restore an image from the Recycle Bin**
The following ``restore-image-from-recycle-bin`` example restores AMI ami-0111222333444abcd from the Recycle Bin. ::
aws ec2 restore-image-from-recycle-bin \
--image-id ami-0111222333444abcd
Output::
{
"Return": true
}
For more information, see `Recover AMIs from the Recycle Bin <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-amis.html>`__ in the *Amazon Elastic Compute Cloud User Guide*.