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
Examples
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
--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.