I have a dynamodb table. The table's partition key is id
. One of its GSI has a partition key: type
. When I create an item on dynamodb table, it requires me fill in the type
field for GSI. Is it possible to make type
as optional? That means there are some items I don't want them to be saved in GSI.
When I am using aws sdk
client, I am able to put an item without the GSI partition key. It works as long as the item has table partition key. But when I work on AWS dyanmodb console, it always asks me to set GSI partition key. I think this is an issue with AWS console.