I am building application with cloudformation template and now migrating to using CDK. But when I run cdk deploy command, it always complains about resources already exist even I use the same stack name. Is there a way run CDK without tear down any cloudformation stack?
I know there is import resources feature but my case is that the resources will belong to the stack managed by CDK. If I use import
, that means the resources exist outside of the stack. How can I make it work automatically? The logic should be import the resource if it exists, otherwise create it
.