Working with nested Outputs #12696
Answered
by
Frassle
crabhi
asked this question in
Pulumi in Practice
-
Hi everyone, I haven't found a good way to wait for all nested outputs to be available and then access them. Especially because I have a nested structure of objects. So far, the best way seems to use my_config = {
... # using lifted outputs from the generated objects
}
Output.json_dumps(my_config).apply(lambda x: json.loads(x)).apply(something_something) Is there a way to do the above without the JSON trip? |
Beta Was this translation helpful? Give feedback.
Answered by
Frassle
Apr 18, 2023
Replies: 1 comment 4 replies
-
The typing information is sub-optimal for this operation but if you just call |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
crabhi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The typing information is sub-optimal for this operation but if you just call
Output.from_input(my_config)
it will collapse output values to plain values recursively.