https://pulumi.com logo
b

best-lifeguard-91445

05/14/2020, 2:23 AM
Is there a way to view a dependency graph of an undeployed stack?
l

little-cartoon-10569

05/14/2020, 3:12 AM
A resource graph like on app.pulumi.com? Or dependencies like .NET assemblies, npm modules, etc.?
b

best-lifeguard-91445

05/14/2020, 3:17 AM
resource graph like app.pulumi.com
l

little-cartoon-10569

05/14/2020, 3:19 AM
I haven't seen a way to do that automatically. If you're happy with the text version, you could
pulumi preview --show-reads
. Or you could write your own transpiler that converts the preview to graphviz?
b

best-lifeguard-91445

05/14/2020, 3:20 AM
okay, thanks Paul! I'll see what I can do re: transpiling
l

little-cartoon-10569

05/14/2020, 3:30 AM
🙂 Or if your stack isn't expensive, you could up it, nab the visualization, then destroy it...?
Or run the whole thing through mocha and have the mocking code produce graphviz code.. that would be fun..
😆 1
2 Views