https://pulumi.com logo
Title
d

damp-elephant-82829

11/02/2020, 10:12 AM
Hello guys, I have a set of custom resources and unfortunately the dependency graph is not correct. I can’t get a google object storage bucket inside a custom resource “Bucket With Notification” wait for a gcp.Project built inside a custom resource “Ephemeral Project”
g

green-school-95910

11/02/2020, 1:08 PM
Can you share the code? Just the dependencies block of the 4 resources
d

damp-elephant-82829

11/03/2020, 3:55 PM
Sure, so this is the ephemeral project component
This is the bucket with notification component
it is failing on line 27
g

green-school-95910

11/03/2020, 3:59 PM
And what is the exact error?
d

damp-elephant-82829

11/03/2020, 3:59 PM
This is what happens in my main.py
so what is surprising is that in line 24, I am clearly saying that the component should not be created before the ephemeral project.project field, which is a gcp project, is ready
what surprises me is that I don’t see a dependency tree
g

green-school-95910

11/03/2020, 9:41 PM
Hum. Everything seems right to me, maybe it is some quirk of the Python registration process that is quite different from JS. I suspect some variable is not being passed correctly
d

damp-elephant-82829

11/04/2020, 12:47 PM
well I remembered when I had parent resources
I had some sort of tree