Reputation: 467
I have an existing table which only has Partition key (ID) set up. During my development with dynamodb, I found out that I need to update this table to set up the Sort key also. I check the help page from aws dynamodb cli update-table, I don't see a clear way to do this. How can I use cli to accomplish this?
Upvotes: 2
Views: 376
Reputation: 238847
Sadly, you can't add sort key to the existing table. The list of available options for updating an existing table is here and it includes:
Thus, you have two options to rectify the issue:
Upvotes: 4