Hi Guys, I wanted to report a bug in DynamoDB Tab...
# help
c
Hi Guys, I wanted to report a bug in DynamoDB Table class of SST: When you override the default table name by setting
dynamodbTable.tableName
, that table will not be removed in case of
sst remove
or when removing the table from the stack. Did anyone experienced the same?
o
I think you need to set the removal policy since by default dynamoDB tables don't get deleted so that you don't accidentally lose data. https://docs.serverless-stack.com/constructs/Table#configuring-the-dynamodb-table We set that flag depending on env (if prod || staging then keep otherwise destroy)
c
Thank you, I’ll try and let you know!
c
It works, thank you!
t
be careful with this prod as omi mentioned, you don't want to set it in prod
o
Oh didn't know there was an app level default, super cool
c
Yes, for sure! I’m doing some experiment for a new project and it’s way faster letting him delete it for me