I ran into an issue where I have a set of resource...
# general
m
I ran into an issue where I have a set of resources with dependencies between them, where the graph I want to create is a DAG (ie. no cycles) but because of the way the resources are grouped into ComponentResources, there's no way to set up the dependencies correctly. Is there a way to add a dependency to a resource after creating it?
Actually I think what I need to be doing here is creating the later child resources asynchronously (via apply) and then also calling
registerOutputs()
after that is done. I was under the (false?) impression that
registerOutputs()
had to be called synchronously within the constructor of the ComponentResource?
e
impression that
registerOutputs()
had to be called synchronously within the constructor of the ComponentResource?
It's safe to call it later in an apply