https://pulumi.com logo
#general
Title
# general
c

chilly-laptop-44574

03/27/2020, 3:42 AM
For the CI/CD pipline how do we check that the stack already exists? When I call
pulumi stack init my-stack
and the stack already exists pulumi throws an error
error: no stack named 'my-stack' found
I think pulumi cli should rather say something like
stack named 'my-stack' already exist. OK
g

gentle-diamond-70147

03/27/2020, 3:50 AM
I believe
pulumi stack select my-stack --create
is equivalent to this.
👍 1
c

chilly-laptop-44574

03/27/2020, 3:57 AM
Awsome it works thanks 👍!