Dummy question… when I run `sst remove --stage xxx...
# sst
a
Dummy question… when I run
sst remove --stage xxx
… how it know which stages has to remove? it compiles my current code to get the existing stages “in code”? or calls CF to pull existing stacks? Asking this because sometimes I modify an stack-name locally, but on AWS there is still the same stack with other name. What would happen in that situation? is going to remove my old stack or not?
t
Yeah right now if you modify a stack name and deploy, it won't remove your old stack because cdk has no way to tie it together. Probably correct behavior
I believe sst remove will just look for
app-stackname-stage
so if you change the stackname it won't be able to find it
I generally clean up stuff from the UI when I change stack structure