Donuts
Donuts

Reputation: 57

How do I move an S3 "Deep Glacier Archive" object?

I have a number of "Deep Glacier Archive" class objects in the root level of my Amazon S3 bucket.

As the number of objects grows, I've added some top-level folders to the same bucket that I'd like to move the other objects into for organizational reasons. While I can add new objects to these folders, I've noticed that the "Move" action option is grayed out while when I have existing objects selected.

Is there a way that I can move these glacier objects into the other folders in the same bucket? (I'm using the Amazon AWS S3 web console interface.)

Upvotes: 3

Views: 3268

Answers (2)

leki
leki

Reputation: 5

You have to first restore the objects and wait around 48h until the process completes (you can do that directly from the management console). Once it is done you should see the download button enabled in the console and a countdown of the days you set them to be available.

Then you can move them using the AWS CLI with:

aws s3 mv "s3://SOURCE" "s3://DEST" --storage-class DEEP_ARCHIVE --force-glacier-transfer

I don't think is possible to move them from the management console directly, after the restoration.

Upvotes: 0

John Rotenstein
John Rotenstein

Reputation: 269470

Objects cannot be 'moved' in Amazon S3. Doing so actually involves performing a copy and then delete.

The S3 management console is unable to move/copy an object with a Glacier storage class because the data is not immediately available. Instead, you should:

  • Restore the object (Charges might apply)
  • Once restored, perform the move/copy

Upvotes: 2

Related Questions