Tyler Flint
03/31/2021, 3:16 AMFrank
$stage-$app-$id
with the exception of sst.Function
and sst.Bucket
Frank
Function
and Bucket
because we want them to be unique.
• For Function
, if we hardcode the function name, the CloudWatch log group name will also be hardcoded. And because CloudWatch log groups are retained after you remove them, so if you remove the stack and redeploy, the deployment will fail with the error log group with the same id already exist.
• For Bucket
, the name needs to be globally unique. So it’s safer to let CloudFormation to auto generate them.Frank
Frank
Frank
Function
names are pretty ugly, and we are thinking of fixing it - https://github.com/serverless-stack/serverless-stack/discussions/236 I’d love to have you chime in the thread and share your ideas.Tyler Flint
03/31/2021, 11:18 AM