Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the sort key of a table in dynamodb

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

Thanks!

like image 744
Nilotpal Avatar asked Oct 25 '25 03:10

Nilotpal


1 Answers

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

like image 149
fedonev Avatar answered Oct 27 '25 02:10

fedonev