Hey!
I'm switching all my stacks to the new functional pattern. Everything works fine but one little thing. Before I used to pass an id to the constructor, this id was used to name the stack in CloudFormation. Now it uses the function name to name the stack. So instead of reusing the old stacks, CloudFormation tries to create new Stack and as you can imagine I do not want to recreate all my cognito userpools, QLDB database, etc etc.
Is there a way that I can change the name that the CloudFormation stack will have besides changing the name of the function?
As an example, before I was doing this, and the id was used in the name of the CloudFormation
const fdmCognito = new CognitoStack(app, 'fdm-cognito');
...
constructor(scope, id, props) {
super(scope, id, props);
Now I am doing this
export default function CognitoStack(_ctx_: _StackContext_) {...}
And instead of the id, it uses
CognitoStack
in the name of the CloudFormation stack
Thank in advance