How you guys define names on your stacks and compo...
# sst
a
How you guys define names on your stacks and components? I usually define a “name prefix” variable at the beginning of my stack, with the namespace like
${scope.stage}-${scope.name}-project
… where
project
is the name of the feature that I want to build. Then when creating a Dynamo table, for example, I do this:
Copy code
tableName: `${namePrefix}-myCoolTable`,
But well, it’s a little boilerplate to do this on every Construct instance. What others are doing?
t
I generally don't specify names on my resources and let it get randomly named. This makes things hard to read in the AWS console but I don't want the overhead of managing names
Long term we want to build tooling to visualize things from the perspective of your stack - so by their construct id instead of their literal aws name
a
Yeah my team uses the console a lot, and names are important for that reason.