Dan Van Brunt
09/17/2021, 6:40 PM[stage]-[sst.json name]-[stack instance name]
However, we have a stack naming convention we like to follow that we want to be
[service]-[stage]
Eg.
service = my-app
stage = dev
// my-app-dev
Is there a way to override the SST stackname?Adrián Mouly
09/17/2021, 6:50 PMAdrián Mouly
09/17/2021, 6:50 PMAdrián Mouly
09/17/2021, 6:51 PMAdrián Mouly
09/17/2021, 6:51 PMDan Van Brunt
09/17/2021, 7:12 PMDan Van Brunt
09/17/2021, 7:13 PMFrank
new MyStack(app, "my-stack", {
stackName: `my-stack-${app.stage}`,
});
Camilo Bravo
09/20/2021, 4:06 PMError: Stack (my-stack-dev) is not prefixed with the stage. Use sst.Stack or the format {stageName}-my-stack-dev.
Camilo Bravo
09/20/2021, 4:06 PMFrank
Frank
[service]-[stage]did @Dan Van Brunt mean
[stack instance name]-[stage]
?Frank
lib/index.js
looked like this:
new ApiStack(app, "api");
You want to name the stack api-dev
, correct?Camilo Bravo
09/21/2021, 12:55 PMFrank
Frank
Frank
[stage]-
, ends in -[stage]
, or contains -[stage]-
. It just has to be parameterized with the stage name, at least for now.Frank
Camilo Bravo
09/23/2021, 1:56 PMFrank
Dan Van Brunt
10/07/2021, 8:59 PMFrank
Frank