So I ran - npx sst start and project boots up, how...
# help
m
So I ran - npx sst start and project boots up, how should I run this next time, running npx sst start will again try to create stack/resources and will throw resource exist error . UPDATE: in my stack I am creating dynamodb table, How can I check if table exist and skip if it exist ? Thanks
r
It will only remove the resources if you run
sst remove
(although this respects any Removal Policies you’ve specified) So next time you run
sst start
it’ll reuse existing resources
m
Hey @Ross Coundon I also tried sst remove then sst start but same thing happened
r
Yes, if you run remove, it’ll remove all your resources. If you run
sst start
twice in succession, it’ll reuse resources
m
sst remove will not remove dynamodb
r
I think it will if you set
Copy code
RemovalPolicy.DESTROY
f
Hello
I have the same issue
t
You should never really be running sst remove. Everytime you start to work you can run sst start and it'll just reuse what's already there
If you do run sst remove, the default behavior is not to delete stateful resources like DynamoDB in case you accidentally deleted data
You can delete it manually in the console and then bring everything up
r
Is that still the case if you specify RemovalPolicy.DESTROY ?
t
No was about to mention that
Like Ross said you can override this default behavior but I don't think you should be running into this frequently