https://pulumi.com logo
Title
w

white-airport-48392

04/15/2020, 7:51 AM
Hi , I am exporting a python object in one stack , by export I mean Stack Output for example say
{
  "a": "b",
  "c": "d"
}
I want to access this as a python Object in another stack , I use StackReference And tried
infra_props = StackReference("dev")

print(infra_props.get_output("network_config").all().apply(lambda c: json.dumps(c)))
This still outputs an Output
Am I doing it wrong ?
Is there a right way to pass around json stack Outputs from one stack to other
w

white-balloon-205

04/15/2020, 2:46 PM
You need to do the print inside the apply.
print(json.dumps(c))
.
❤️ 1