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, 2019 in AWS by Richard

1 answer to this question.

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


-- 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

Get an in-depth understanding from the AWS Course in Boston.

answered May 20, 2019 by Kalgi
• 52,360 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
• 58,090 points
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,170 points
+3 votes
6 answers

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

Hey, 3 ways you can do this: To ...READ MORE

answered Oct 9, 2018 in AWS by Omkar
• 69,230 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
+2 votes
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, 2019 in AWS by Kalgi
• 52,360 points
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP