aws ec2 modify-snapshot-tier
Archives an Amazon EBS snapshot. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To archive a snapshot
The following modify-snapshot-tier example archives the specified snapshot. 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).
aws ec2 modify-snapshot-tier --snapshot-id snap-01234567890abcedf --storage-tier archiveIdentify--snapshot-idThe ID of the snapshot.--storage-tierThe name of the storage tier.Its output
{
"SnapshotId": "snap-01234567890abcedf",
"TieringStartTime": "2021-09-15T16:44:37.574Z"
}For more information about snapshot archiving, see Archive Amazon EBS snapshots 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.--storage-tierThe name of the storage tier.