Hello there! Is there any way to control the name ...
# help
a
Hello there! Is there any way to control the name of these with the sst cli? From my understanding it's composed like this
[stage]-[stack name]-[id]
I need it to be simply
aml-person-flow
as we upload the assets to a custom release manager which requires it to have this name
I have set stage to
aml
, stack name to
person
and id to be
flow
for now, ugly but gets the job done 🤣
f
lol @Alexandru Simandi you can override the stack name like this
Copy code
// ur index file

export default function main(app) {
  new ApiStack(app, "api", { stackName: `${app.stage}-custom-stack-name`} );
}
The stack name has to be parameterized with the stage name: • ${app.stage}-custom-stack-name • custom-stack-name-${app.stage} • custom-${app.stage}-stack-name Any of these is good
a
@Frank thanks for answering. We use stages for local development but we have a different system for deployments which doesn't require naming stages. It has been a little awkward along the way because of our unique constraints but your project really helped my team get back to local development and we finally eliminated the fear of deploying. Thanks a bunch!