few-greece-61412
12/06/2024, 9:45 PMpulumi.ComponentResource
. I performed a pulumi state move
of the top level class , which resulted in the transfer of all its child resources to the new stack, which is what I expected. To match the code, I moved the relavent portion in to the new stack and also used the import argument in the code (CustomresourceOptions), mapping them to the id. I can see the child resources being imported but a new parent class i.e the parent component is being created in the new stack, I also see warnings related to potential import failures.
To me it looks like I have to somehow tell Pulumi the top level class in my new stack is the same.
1. There is no difference in code and its config valueshallowed-photographer-31251
12/06/2024, 9:52 PMfew-greece-61412
12/06/2024, 9:54 PMpulumi import
to have a duplicate urn of the same resource , but pulumi import creates a replacement but I don't see that with pulumi state move
though 🤔, which is a good thing 🙂 . I just dont't know why that happens