Hi , I am exporting a python object in one stack ,...
# python
w
Hi , I am exporting a python object in one stack , by export I mean Stack Output for example say
Copy code
{
  "a": "b",
  "c": "d"
}
I want to access this as a python Object in another stack , I use StackReference And tried
Copy code
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
You need to do the print inside the apply.
print(json.dumps(c))
.
❤️ 1