Hi Friends, When i perform a preview with a plan= ...
# general
s
Hi Friends, When i perform a preview with a plan= export from the Automation API the format of the resultant json is different to
pulumi preview --json
How can i get the same output from the Automation API?
e
preview --json is just the summary diff displayed as json a plan export is a much richer data structure that includes far more than a preview diff to allow the engine to constraint later updates to do the same thing as the preview
s
How can i get just the summary diff in json from the Automation API?
It would be nice if infracost could parse over the plan export… but it doesn’t seem to
or could i convert from the plan format into the preview format somehow?
e
I don't think this is exposed by automation api at the moment
s
😞
e
It's come up a few times, something we need to look into. I do have a plan for a whole overhaul of automation api, but it's big work and hard to find time to do it
s
I understand
what about export_stack() ?
e
That will give you a stack that's deployed, not a preview result
s
For now i’m breaking out into a shell command to do what i need instead of using automation api… fine for a prototype but definitely very interested in seeing the Automation API overhaul!