https://pulumi.com logo
Title
b

brave-angle-33257

02/06/2023, 6:19 PM
is there an env var that remove this prompt?
warning: This command will edit your stack's state directly. Confirm? (y/N)
happens on
pulumi refresh -y
m

melodic-tomato-39005

02/06/2023, 6:24 PM
I haven’t tried it but maybe
--non-interactive
?
b

brave-angle-33257

02/06/2023, 6:27 PM
that seems to work, thank you.. I would prefer to use an ENV var that I can bake into a container rather than update all the internal commands if possible still
m

melodic-tomato-39005

02/06/2023, 6:31 PM
Generally, interactivity should be auto-detected. Is it not working for you?
b

brave-angle-33257

02/06/2023, 6:32 PM
not sure I follow.. but I have a container with the pulumi CLI that I mount on top of code repos. after an update to a more recent version, when I execute a refresh/update, it gives this prompt. I haven't ran into any issues yet in a pipeline, but am hoping to avoid one
root@49def9b610a0:/data/pulumi/infra/aws/projects/survey/environment/lambda-survey-smart-resolver# pulumi refresh -y && pulumi up
 warning: This command will edit your stack's state directly. Confirm? (y/N)
root@49def9b610a0:/data/pulumi/infra/aws/projects/survey/environment/lambda-survey-smart-resolver# pulumi version
v3.39.3
e

echoing-dinner-19531

02/06/2023, 6:33 PM
It should detect non-interactive automatically based on if stdin is a tty I think
b

brave-angle-33257

02/06/2023, 6:34 PM
ok, i'll just keep an eye on it, maybe it wont be an issue.. like i said, so far hasn't caused any issue.. thanks for the info!