CmdID

CmdID / aws / aws ec2

aws ec2 unlock-snapshot

Unlocks a snapshot that is locked in governance mode or that is locked in compliance mode but still in the cooling-off period. AWS CLI reference

1 example 2 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 unlock a snapshot

The following unlock-snapshot example unlocks the specified snapshot.

aws ec2 unlock-snapshot --snapshot-id snap-0b5e733b4a8df6e0dIdentify
--snapshot-idThe ID of the snapshot to unlock.
Its output
{
    "SnapshotId": "snap-0b5e733b4a8df6e0d"
}

For more information, see Snapshot lock in the Amazon EBS User Guide.

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.
--snapshot-idThe ID of the snapshot to unlock.