https://pulumi.com logo
Title
l

little-cartoon-10569

11/23/2022, 8:58 PM
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

echoing-dinner-19531

11/23/2022, 11:10 PM
l

little-cartoon-10569

11/23/2022, 11:30 PM
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

echoing-dinner-19531

11/24/2022, 11:00 AM
You can use something like script or unbuffer to trick pulumi into thinking it's connected to a tty