How to transfer my Amazon S3 Bucket to another region

+1 vote
I just made 2 Buckets and chose the region to be Asia Pacific Hong Kong. However now when I log into my account I can se the rgion for those 2 buckets is US East N. Virgina !

Any idea on how this happened or how to change the region - I have looked exhaustively on the AWS documentation but can't find anything other than 'select your region when making the bucket' !

Also I could simply delete the bucket and try again but it took 2 days for my files and info to load into the buckets and so don't really want to do again if it goes 'wrong' again - thanks
May 18 in AWS by Richard
28 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Hey @Richard, as far as I know, there is no way to specifically move your S3 bucket to another region. But what you can do is, create another bucket in the new region and use Cross Region Replication(CRR) to transfer files from the current bucket to another one.

Things you will need to keep in mind:

  • Bucket names are globally unique. So your option is to copy the data to a temp bucket, delete the original one, create the new one in the new region and move data again.
  • This will cost you.
  • Also, you can't delete the bucket and create a new one with the same name right away - Amazon caches these, and thus it takes a while until bucket name becomes available again

Example:

-- Create tmp
$ aws s3 sync s3://bucket1 s3://tmp --source-region us-west-1 --region us-west-2
$ aws s3 rb s3://bucket1 --force
-- Recreate bucket1 in us-west-2, but you might have to wait due to caching
$ aws s3 sync s3://tmp s3://bucket1 --source-region us-west-2 --region us-west-2
answered May 20 by Kalgi
• 36,920 points

Related Questions In AWS

0 votes
1 answer

How to copy .csv file from Amazon S3 bucket?

Boto3 is the library to use for ...READ MORE

answered Jul 6, 2018 in AWS by Priyaj
• 56,140 points
305 views
0 votes
1 answer

How to upload a file to Amazon S3 without passing it my server?

This article pretty much explains the entire ...READ MORE

answered Aug 14, 2018 in AWS by Archana
• 4,090 points
42 views
+3 votes
5 answers

How to move files from amazon ec2 to s3 bucket using command line

First Option sm3cmd Use s3cmd s3cmd get s3://AWS_S3_Bucket/dir/file Take a ...READ MORE

answered Aug 29, 2018 in AWS by Priyaj
• 56,140 points
1,151 views
+13 votes
2 answers
0 votes
1 answer
+1 vote
1 answer

How To Become Certified in AWS-Solution-Architect-Associate Exam??

Hey @Robii,  Start with some basic research about ...READ MORE

answered Apr 9 in AWS by Kalgi
• 36,920 points
33 views
+1 vote
1 answer

How to make the instance IP static in nature? - AWS

Hey @Laksha! By default, all instances have a ...READ MORE

answered Apr 11 in AWS by Kalgi
• 36,920 points
32 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.