Archive an Amazon EBS snapshot - Amazon EBS

Archive an Amazon EBS snapshot

You can archive any snapshot that is in the completed state and that you own in your account. You can't archive snapshots that are in the pending or error states, or snapshots that are shared with you. For more information, see Considerations and limitations for archiving Amazon EBS snapshots.

If the snapshot is associated with one or more AMIs, then you must first disable those associated AMIs before you can archive the snapshot. For more information, see Disable an AMI.

Archived snapshots retain their snapshot ID, encryption status, AWS Identity and Access Management (IAM) permissions, owner information, and resource tags. However, fast snapshot restore and snapshot sharing are automatically disabled after the snapshot is archived.

You can continue to use the snapshot while the archive is in process. As soon as the snapshot tiering status reaches the archival-complete state, you can no longer use the snapshot.

You can archive a snapshot using one of the following methods.

Console
To archive a snapshot

Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  1. In the navigation pane, choose Snapshots.

  2. In the list of snapshots, select the snapshot to archive and then choose Actions, Archive snapshot.

  3. To confirm, choose Archive snapshot.

AWS CLI
To archive a snapshot

Use the modify-snapshot-tier AWS CLI command. For --snapshot-id, specify the ID of the snapshot to archive. For --storage-tier, specify archive.

$ aws ec2 modify-snapshot-tier \ --snapshot-id snapshot_id \ --storage-tier archive

For example, the following command archives snapshot snap-01234567890abcedf.

$ aws ec2 modify-snapshot-tier \ --snapshot-id snap-01234567890abcedf \ --storage-tier archive

The following is the command output. The TieringStartTime response parameter indicates the date and time at which the archive process was started, in UTC time format (YYYY-MM-DDTHH:MM:SSZ).

{ "SnapshotId": "snap-01234567890abcedf", "TieringStartTime": "2021-09-15T16:44:37.574Z" }