https://pulumi.com logo
#general
Title
# general
g

green-morning-1318

11/27/2019, 10:49 PM
Hi all 👋 when you replace a DynamoDB table (for example when the hashkey attribute changes), will the data be deleted?
w

white-balloon-205

11/27/2019, 10:51 PM
Yes. Unless AWS provides an in-place update option for the change in question, it will need to be replaced which will result in losing the data from the old Table. In general, as a result, DynamoDB has best practices around schema evolution that involve creating new tables or adding secondary indexes instead of changing existing tables for production data stores.
g

green-morning-1318

11/27/2019, 10:52 PM
I thought so 🙂 Just checking if my assumption was correct