sparse-intern-71089
11/24/2020, 5:13 PMwitty-candle-66007
11/24/2020, 7:20 PMinitiate the stack
and then when some instance is finally created
are you referring to the preview part of a pulumi up
as that first bit and the actual deployment as the second bit?
If so, pulumi preview is not able to show actual values for resource properties since it doesn’t know them yet. Once you let it deploy then it’s able to show the properties.
Regardless, if you use outputs from one resource as inputs to another resource, Pulumi will manage the dependencies.better-actor-92669
11/24/2020, 8:07 PMwitty-candle-66007
11/24/2020, 9:17 PM.apply()
to essentially tell Pulumi the answer is coming later:
https://www.pulumi.com/docs/intro/concepts/programming-model/#outputsbetter-actor-92669
11/24/2020, 9:48 PMbetter-actor-92669
11/25/2020, 10:40 AMbackend_instance_pulumi_objects[item].network_interfaces.apply(
lambda x: x[0].get('networkIp')
),
The Code snippet above worked for me in the endbetter-actor-92669
11/25/2020, 10:40 AMbackend_instance_pulumi_objects[item].network_interfaces.apply(
lambda x: x[0].get('networkIp')
),
The Code snippet above worked for me in the end