[BUG]: Create Table command in AppStack.ts not idempotent.
Operating system
Windows 11
Bug description
Create Table command in AppStack.ts throws an exception if the specified table already exists in DynamoDB. Prevents SST from starting. In other words, the command is not idempotent. We should check if the table exists first, and if not, create it then.
Steps to reproduce
Un-comment the
const trainspaceRunTable = new Table(...);
lines of code, and then type dlp-cli start.
It should complain about the specified table already existing, and then fail to start.
Hello @alantao912! Thank you for submitting the 🐞Bug Request Form. We appreciate your contribution. :wave:
We will look into it and provide a response as soon as possible.
To work on this bug request, you can follow these branch setup instructions:
- Checkout the main branch:
```
git checkout nextjs
```
- Pull the latest changes from the remote main branch:
```
git pull origin nextjs
```
- Create a new branch specific to this bug request using the issue number:
git checkout -b bug-1033
Feel free to make the necessary changes in this branch and submit a pull request when you're ready.
Best regards, Deep Learning Playground (DLP) Team
@alantao912 status on this?
@alantao912 any status on this?