amazon-web-servicesamazon-s3amazon-ec2amazon-glacier

move S3 files with Glacier storage class to a different folder


We have a good amount of files that were on the wrong folder in S3 but has since transitioned to Glacier storage class. First thing is we want to restore them so we can move them to the right folders. Once moved we transition it back to Glacier storage class. The main question is, do those files get duplicated on the Glacier side? Since restoring them (to Standard) doesn't mean that they're being deleted or moved on the Glacier side. How do we verify that they are not duplicated after moving to a different folder in the Standard class?


Solution

  • Amazon S3 objects are immutable. You cannot "move" objects in S3 or Glacier.

    The process would be:

    From CopyObject - Amazon Simple Storage Service:

    If the source object's storage class is GLACIER, you must restore a copy of this object before you can use it as a source object for the copy operation.