in using the functional approach, this doesn’t see...
# help
s
in using the functional approach, this doesn’t seem to work:
Copy code
app.stack(WebAppStack, { stackName: 'web-app' });
it complains about
$stage
not being present. but you can’t just do
'$stage-web-app'
either. the instructions from CDK seem odd 🤔 so I assume you just have to do this?
Copy code
app.stack(WebAppStack, { stackName: `${app.stage}-web-app` });
ah, nope. this did the trick:
Copy code
app.stack(WebAppStack, { stackName: `${app.stage}-${app.name}-web-app` });
f
Oh, didn’t know this would give error 🤔
Copy code
app.stack(WebAppStack, { stackName: `${app.stage}-web-app` });
s
@Frank oh, no error. just not the desired outcome 🙂