Lee Reinhardt
09/15/2021, 3:05 AMsst.Table()
. am i correct in understanding there’s no way to create LSIs from SST? everything in secondaryIndexes
gets created as a GSI (even when re-using the table’s PK). i’m kinda surprised no one’s apparently asked about this on github issues, discussions or even this slack. that makes me think i’m missing something obvious, but i’ve read the docs/source extensively and don’t think so..thdxr
09/15/2021, 3:06 AMLee Reinhardt
09/15/2021, 3:07 AMthdxr
09/15/2021, 3:08 AMthdxr
09/15/2021, 3:09 AMthdxr
09/15/2021, 3:09 AMthdxr
09/15/2021, 3:11 AMconst table = new sst.Table()
table.dynamodbTable.addLocalSecondaryIndex(props)
As documented here: https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-dynamodb.Table.html#addwbrlocalwbrsecondarywbrindexpropsthdxr
09/15/2021, 3:11 AMLee Reinhardt
09/15/2021, 3:14 AMtable.dynamodbTable
thdxr
09/15/2021, 3:14 AMLee Reinhardt
09/15/2021, 3:15 AMnew sst.Table()
would be 💯Lee Reinhardt
09/15/2021, 3:15 AMFrank