It is not an error to have cyclic references between module instantiations so long as the elaborated resource graph is itself acyclic. Because the current implementation of pulumi.Output captures its resource dependency list upon creation, there's no clean way for us to support this. The best we can do without changing pulumi.Output is to bundle the module cycle into its own combined module that contains the elaborated resource graph.
It is not an error to have cyclic references between module instantiations so long as the elaborated resource graph is itself acyclic. Because the current implementation of
pulumi.Output
captures its resource dependency list upon creation, there's no clean way for us to support this. The best we can do without changingpulumi.Output
is to bundle the module cycle into its own combined module that contains the elaborated resource graph.