CmdID

CmdID / aws / aws ec2

aws ec2 modify-snapshot-tier

Archives an Amazon EBS snapshot. AWS CLI reference

1 example 3 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 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

3 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.
--storage-tierThe name of the storage tier.