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ヶ月前326ビュー
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
エキスパート
A_J
レビュー済み 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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ