Reputation:
How do I change DynamoDB Region Programtically? I have set to USEast but i want to later switch it to US west I know there is another answer on Stack Overflow but that answer is deprecated. This was the answer on stack: AWS Switch Region from East1 to West2 The documentation is not clear on this one.
Upvotes: 3
Views: 5838
Reputation: 83
I had this same problem and all the solutions I found on StackOverflow were outdated or way more complicated than necessary. After trying a couple propositions, I ended up writing a NodeJS script to move the data over. Maybe that could work for you? If you want to try, I documented my approach on my blog here.
Upvotes: 0
Reputation: 5415
I've written a script to do this for large DynamoDB tables that handles pagination.
https://gist.github.com/davoscollective/15e15ec2b2ec368f6cc71509c9693d34
It's based on another script that doesn't have pagination, but does create the table for you. see https://gist.github.com/Dineshkarthik/d0944c45b06726a327a9536a33dabdd2 for that.
Essentially, you can't just change the region of the table. You have to create the same named table in the new region, and copy the data over. I've read that old AWS article about using data pipeline, however no such button exists in the AWS console anymore. DynamoDB Streams is a good option but requires you to create global (more expensive) table up front, which is not helpful when all you want to do is migrate regions with an already existing table full of data.
Upvotes: 0
Reputation: 10056
options are:
Upvotes: 1