Reputation: 3588
I am stuck with removing sort key in dynamodb table. I need to know via AWS console UI or command line.
Thanks!
Upvotes: 4
Views: 4698
Reputation: 25739
A DynamoDB table's Sort Key and Partition Key definitions cannot be changed.
(You can update an individual record's PK and SK values, but you cannot change the PK or SK setting.)
It is a typical pattern to use the generic key names PK
and SK
, for this reason (and that the pattern also enables a single-table design).
Upvotes: 7