'CDK migrate from python to typescript

I'm wondering how I would go about migrating my infrastructure that has been created in CDK python to Typescript.

We have shifted our focus from being mostly python to mostly typescript - and I want to move infrastructure close to the source code.

I've tried to simply copy the id of the constructs at thetop level

e.g.

dev = EnvStack(
    scope=app,
    construct_id="dev",
    env=non_prod,
)

When I created the equivalent stack name in TS - I get stack already exists in app error.

Is there a way to do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source