This message was deleted.
# general
s
This message was deleted.
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
👍 1
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
👍 1
s
I understand
what about export_stack() ?
e
That will give you a stack that's deployed, not a preview result
1
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!