To transfer S3 Glacier objects to S3 bucket

0

Hi AWS, we have some objects having Storage Class Glacier Flexible Retrieval (Formerly Glacier) which I need to transfer in a new S3 bucket in the same AWS account having Storage Class Standard. What are the different ways of doing that?

Also I need to know how can we do:

  1. Cross region Same account
  2. Same region Cross account
  3. Cross region Cross account

Please suggest.

profile picture
asked 8 months ago423 views
1 Answer
0

To transfer objects from an S3 bucket with the Glacier Flexible Retrieval storage class to a new bucket with the Standard storage class within the same AWS account, you have several options. You can use AWS services like AWS CLI, AWS SDKs, or AWS DataSync for this purpose.

Keeping things simple anyway, you can copy files from a bucket to another with

aws s3 sync s3://source-bucket s3://destination-bucket

Note: It does not matter in what Class is what object as S3 will figure things out.

  1. Cross region Same account --> Just copy as before, making sure the two buckets are set up in different regions (Although S3 is global service)
  2. Same region Cross account --> Moving data to another account implies you set up the user launching the copy to have access to the destination bucket, via a bucket policy on destination.
  3. Cross region Cross account --> As point 2.
profile picture
EXPERT
answered 8 months ago
profile picture
EXPERT
reviewed 8 months ago
  • I ran the command to try copying one object of Storage Class Glacier Flexible Retrieval (Formerly Glacier) from source bucket to destination bucket in eu-west-1 and the command I ran was aws s3 sync s3://source-bucket/img.jpeg s3://destination-bucket

    The command executed successfully with no error but when I checked the destination bucket it is still empty. Also I am not sure whether the storage class of the objects will automatically be changed to Standard . Last but not the least the IAM user has AdministratorAccess and still the operation is not executed.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions