I'm looking to get a rich diff between state and p...
# general
l
I'm looking to get a rich diff between state and provider into a text file / json file. But when I run
pulumi refresh --diff [--json] > file
, it responds with the error message
error: --yes or --skip-preview must be passed in to proceed when running in non-interactive mode
Can anyone suggest a workaround to get the details into a file for easier viewing, without doing the actual refresh?
e
l
But also, is there a bash solution? Some way to convince the tool that it's running interactively, maybe piping
n
, or anything else?
e
You can use something like script or unbuffer to trick pulumi into thinking it's connected to a tty