S3 Glacier Flexible Retrieval is an Amazon S3 storage class for archiving objects at low storage cost when immediate access is unnecessary. The AWS CLI names this class GLACIER. Storage is inexpensive, but retrieval costs more and restored objects may take from minutes to hours to become available. section 7.4
A typical archival workflow is:
- Create an S3 bucket for archived objects. section 7.4
- Upload an object with --storage-class GLACIER, which selects S3 Glacier Flexible Retrieval. section 7.4
- Request restoration with aws s3api restore-object, choosing a restoration duration and retrieval tier. section 7.4
- Check restoration status with aws s3api head-object; download the object after Restore reports that the request is no longer ongoing. section 7.4
Restoring an archived document
Archive a tax-statement PDF with `aws s3 cp --storage-class GLACIER`. A direct download fails because GLACIER objects cannot be downloaded immediately. Run `aws s3api restore-object`, inspect the object until restoration completes, and then copy it to the local machine. A five-year archive accessed fewer than five times illustrates when delayed retrieval can justify the lower storage cost. section 7.4
Table 7.1 Differences between storing data with S3 and Glacier (view table figure)
Compare S3 Standard, S3 Glacier Instant Retrieval, S3 Glacier Flexible Retrieval, and S3 Glacier Deep Archive by storage price, retrieval cost, access delay, durability, and availability. section 7.4
