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
with Amazon S3
Copy an object into an archival storage class then remove the hot copy.
- Server-side copy the object to the archive key while setting the cold storage class.
- HEAD the archived object to confirm it exists before removing the original.
- 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.