Hello, I’m following the Guide on the official web...
# help
ö
Hello, I’m following the Guide on the official website. When I ran
npx sts start
for the first time, it created two stacks (three actually,
CDKToolKit
as well) 1.
dev-notes-my-stack
2.
dev-notes-debug-stack
Anyways, we (me and the Guide) then removed the stack:
Copy code
npx sts remove my-stack
The output stated that it removed the stack (
dev-notes-my-stack
), however, I can still see the Stack on the AWS CloudFormation console. And when I run the above command once again:
Copy code
Warning: Setting the stage in the "sst.json" will be deprecated soon. Read more about this change here: <https://docs.serverless-stack.com/working-locally#deprecating-the-stage-option-in-the-sstjson>
Using stage: dev
Preparing your SST app
Transpiling source
Linting source
Removing dev-notes-my-stack
Stack dev-notes-my-stack is not found in your app.
--- Here’s the CloudFormation Console showing the stacks:
I’m also confused why running
npx sts start
created and uploaded two Stacks. I gave more details in the discussion forums: https://discourse.serverless-stack.com/t/create-an-sst-app/2462/2?u=omertoraman https://discourse.serverless-stack.com/t/create-a-dynamodb-table-in-sst/2459/3?u=omertoraman
r
One stack is for the live debug session management, the other is for your actual infrastructure
You should pass your stage name using --stage on start/deploy and remove
f
@Ömer Toraman I’m sure
npx sts
is a typo, you meant
npx sst
right?
This error meant that you have removed the
my-stack
stack from ur SST app:
Copy code
Stack dev-notes-my-stack is not found in your app.
You need to keep the
my-stack
around in ur app and run
npx sst remove my-stack
. Can you try putting the stack back and running the remove command again?
ö
@Ömer Toraman I’m sure 
npx sts
 is a typo, you meant 
npx sst
 right?
Yes, I made a typo. Just checked the command I ran, and it was
npx sst
. I’m not sure how I need to keep
my-stack
around. Is it a placeholder name or is it literally
my-stack
? Kindly note that I have never ran
deploy
command, only
start
so far. Does
npx sst remove my-stack
suppose to actually remove the Stack from CloudFormation?
f
Yeah,
sst remove
should remove the CFN stack. The actual stack name is built using
$stage-$app-$stack
, in this case, it seems to be
dev-notes-my-stack