https://pulumi.com logo
Title
a

ambitious-queen-83446

06/30/2021, 4:50 PM
hey y’all, does anyone know why passing
-y
does not auto-accept the prompt when a stack doesn’t exist?
example:
pulumi up --stack local-security -y --refresh                                                                                                                                                                                                
Logged in to jon-s4t as coder (file://~/.pulumi/local)                                                                                                                                                                                       
The stack 'local-security' does not exist.                                                                                                                                                                                                   
                                                                                                                                                                                                                                             
If you would like to create this stack now, please press <ENTER>, otherwise press ^C:                                                                                                                                                        
Created stack 'local-security'
b

billowy-army-68599

06/30/2021, 4:52 PM
this is because the
--yes
is only designed to skip the preview of the code, it's not designed to also create the stack having said that, this should be an option - would you mind opening an issue at github.com/pulumi/pulumi
b

bored-oyster-3147

06/30/2021, 5:15 PM
Looking for “—non-interactive”? In which case I think you’d just get a stack doesn’t exist error
a

ambitious-queen-83446

06/30/2021, 6:59 PM
ah, I missed --non-interactive!