João Pedro
05/19/2022, 2:42 AMapp.stack(MainStack, { stackName: 'main-stack' })
then I get this message:
Stack "main-stack" is not parameterized with the stage name. The stack name needs to either start with "$stage-", end in "-$stage", or contain the stage name "-$stage-".
so I change to this as per instructions:
app.stack(MainStack, { stackName: '$stage-main-stack' })
then I get this message:
Stack name must match the regular expression: /^[A-Za-z][A-Za-z0-9-]*$/, got '$stage-main-stack'
so not sure what am I expected to do hereJoão Pedro
05/19/2022, 2:45 AMthdxr
05/19/2022, 2:55 AMJoão Pedro
05/19/2022, 3:07 AMJoão Pedro
05/19/2022, 3:12 AMapp.stack(MainStack, { id: 'main-stack' })
João Pedro
05/19/2022, 3:13 AMoutaTiME
05/19/2022, 5:10 AMRoss Coundon
05/19/2022, 6:42 AMapp.stack(MainStack, { stackName: `${stage}-main-stack` })
Rather than
app.stack(MainStack, { stackName: '$stage-main-stack' })