What is a good practice for dealing with existing ...
# general
l
What is a good practice for dealing with existing resources? I create part of infrastructure via pulumi in one stack (A) . In another stack(B) I try toconnect vm's (stack A) to existing subnet that is managed by other tool. The reason I am trying this way: when another tool deletes own resources, I simply destroy the stack (B) beforehand. Is using separate stack for that purpose the right way?
g
Hi Krzysztof! Using a stack to buffer the impacts of upstream resources outside of Pulumi is a reasonable pattern if you can reliably orchestrate creation/deletion. If you haven't already seen this: https://www.pulumi.com/docs/using-pulumi/organizing-projects-stacks/#organizing-pulumi-projects-stacks