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

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

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
• 41,660 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,900 points
418 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
82 views
+3 votes
5 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
• 67,600 points
3,269 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
180 views
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
• 41,660 points
67 views