capabilities.work

Archive an Object to a Cold Storage Class

A 3-step recipe with Amazon S3. We can help you get access.

Recipe · 3 steps

Archive an Object to a Cold Storage Class

Copy an object into an archival storage class then remove the hot copy.

  1. Server-side copy the object to the archive key while setting the cold storage class.
  2. HEAD the archived object to confirm it exists before removing the original.
  3. Delete the original hot-tier object now that the archived copy is confirmed.
What you'll need to have ready
  • bucket: The bucket holding the object.
  • sourceKey: The key of the hot-tier object to archive.
  • archiveKey: The key the archived copy is written to.
  • copySource: The x-amz-copy-source value, e.g. /bucket/sourcekey (URL-encoded path).
  • storageClass: The archival storage class, e.g. GLACIER or DEEP_ARCHIVE.
For your developer

Arazzo workflow amazon-s3:archive-object, 3 operations: CopyObject → HeadObject → DeleteObject. Specs on APIs.io.