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
已提問 1 個月前檢視次數 325 次
1 個回答
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
專家
已回答 1 個月前
profile picture
專家
已審閱 1 個月前
  • 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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南