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

limited-rainbow-51650

02/25/2020, 11:03 AM
I am trying to re-parent a resource into a custom component. The old parent is the stack (which is the implicit root). On my resource, which is now inside the
pulumi.ComponentResource
subclass, I add these custom resource options:
Copy code
parent: this,
aliases: [{ parent: pulumi.getStack() }]
However, I still see a
create
and
delete
as separate lines in my Pulumi preview. How can I make this work?
Oh wait, I missed this line in the docs:
To specify no original parent, use { parent: pulumi.rootStackResource }.
Works now. 🙂