https://pulumi.com logo
Title
b

bored-activity-40468

06/12/2021, 10:40 PM
Is there a way to mimic the functionality of the Stack that sets the parent of any created resources to the Stack, in a ComponentResource or do most just set the Resources parent to self or this, depending on the language used?
b

bored-oyster-3147

06/13/2021, 7:08 PM
Pretty sure you have to be explicit. ComponentResource is really just code organization. Since Pulumi is just statically collecting your resource declarations within each Pulumi.Resource constructor it has no concept of where the resource was constructed in code
👍 1
b

bored-activity-40468

06/14/2021, 12:58 AM
That makes sense, thanks.