I am looking for a way to do below steps in Amazon DynamoDB:
- backup the
table_A
- delete the
table_A
- create a new table with the same name
table_A
- fill the new table with the backup from step. 1
The purpose of this task is that I need to change the LSI
(local secondary index) of table_A
The only way of changing it is to create a new table. right? I also need to keep the data (it's no more than couple MBs)
So is it possible to do #3 and #4? Or is there any better approach of this whole thing? If this table is in production, what would be a reasonable approach?
Thanks in advance,
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/backuprestore_HowItWorks.html
Along with data, the following are also included (and can't be excluded) on the backups:
- Global secondary indexes (GSIs)
- Local secondary indexes (LSIs)
- Streams
- Provisioned read and write capacity
Here is an approach I've used before:
table_A
(this is just in case anything goes wrong)table_B
table_B
using Data Pipelinetable_B
table_A
. Recreate it. Load the data in using Data Pipelinehttps://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-importexport-ddb.html
Data Pipeline is pretty rubbish in terms of usability and logging, but it works just fine.