This message was deleted.
s
This message was deleted.
m
You should be able to specify a
dependsOn
option that references the component — e.g., like this:
Copy code
const component = new MyComponent("my-component");

const bucket = new aws.s3.Bucket("my-bucket", {}, 
    { dependsOn: component }
);
Guessing maybe this isn’t working for you?
Ah, I think I misunderstood the question. I don’t believe there’s anything special that has to be done for this, beyond making sure the ComponentResource’s children are `parent`ed by the ComponentResource.
You should also make sure the resource’s options are “registered”: https://www.pulumi.com/docs/intro/concepts/resources/components/#registering-component-outputs
From that doc:
Copy code
The call to `registerOutputs` also tells Pulumi that the resource is done registering children and should be considered fully constructed, so—although it's not enforced—the best practice is to call it in all components even if no outputs need to be registered.
v
Thank you 🙂
👍 1