how do i add dependon functionality to ComponentRe...
# general
how do i add dependon functionality to ComponentResource so other can wait for the CR to be deployed
You should be able to specify a
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”:
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.
Thank you 🙂
👍 1