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

cool-egg-852

06/26/2019, 6:54 PM
I’m trying to do a ComponentResource. I have a few questions: 1) Is there any way to separate the different parts of the component into different files? It’s a large component and I’d like to break it up. 2) Did pulumi change the way the output works? I’m looking at https://github.com/pulumi/examples/tree/master/twilio-ts-component and it shows the component resources being under the component. In my own testing for my custom component, this is not the case. I’m not sure if I’ve done something wrong.
Ah, I think I see what I am missing.
parent: this
. Not complicated, but not easy to see either. I would imagine anything created in the
ComponentResource
would automatically associate to the parent.
I also thought it would get the name appended automatically as well.
Is this something completely out of the question? If not, I’d be happen to open up a ticket
Ok, figured out how to accomplish this. The only thing I am missing is how to get a value out of a ComponentResource to use elsewhere.
And got it.