Hi, is there a correct way to model internal depen...
# general
p
Hi, is there a correct way to model internal dependencies in a component resource? My example here is I create a private endpoint and the postgres instance in the same component resource. Things that depend on the postgres instance try to connect to it as soon as the postgres instance is created, but obviously can’t reach it until the private link has been created.
e
This isn't any different in component resources compared to top level resources. The tricky thing is dependsOn doesn't currently support this so you have to work the wait condition into one of the other inputs. See https://github.com/pulumi/pulumi/issues/2545