1 Answer
- Newest
- Most votes
- Most comments
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.
- Cross region Same account --> Just copy as before, making sure the two buckets are set up in different regions (Although S3 is global service)
- 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.
- Cross region Cross account --> As point 2.
Relevant content
- Accepted Answerasked 2 years ago
- asked 10 days ago
- AWS OFFICIALUpdated a year 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.