4

I am stuck with removing sort key in dynamodb table. I need to know via AWS console UI or command line.

Thanks!

Nilotpal
  • 3,237
  • 4
  • 34
  • 56

1 Answers1

6

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).

fedonev
  • 20,327
  • 2
  • 25
  • 34