https://pulumi.com logo
#general
Title
# general
f

faint-balloon-33174

10/05/2022, 2:47 PM
Is there a way to move existing infrastructure into component resources without deleting/recreating anything?
f

few-yacht-11623

10/05/2022, 3:54 PM
I don’t know exactly how pulumi accomplishes this, but I was able to refactor some infrastructure to a component and when I did
pulumi preview
it showed no changes to the underlying resource. Have you tried making the refactor and doing preview?
I think maybe if the resource identifier doesn’t change it may be able to preserve it