Ross Gerbasi
01/18/2022, 11:28 PMtable.dynamodbTable
to use specific table permissions.
so like this
permissions: [[userTable.dynamodbTable, 'grantReadData']],
instead of
permissions: [[userTable, 'grantReadData']],
Looks like something around here, https://github.com/serverless-stack/serverless-stack/blob/master/packages/resources/src/util/permission.ts#L221 or here https://github.com/serverless-stack/serverless-stack/blob/master/packages/resources/src/Construct.ts#L60. Maybe this got messed up with the update to the latest CDK?Frank
permissions: [[userTable.dynamodbTable, 'grantReadData']],
Frank
grantX
method is a CDK method, so the first parameter should always be the CDK construct (ie. userTable.dynamodbTable
), not the SST construct.Frank
Ross Gerbasi
01/19/2022, 4:36 AM