This message was deleted.
# general
s
This message was deleted.
t
cc @clever-sunset-76585 again 🙂
c
Ah yes. I thought about making the stack input optional for this very reason, but didn't because well it hadn't come up till now. Mind opening an issue?
p
@clever-sunset-76585 Sure - what’s the repo?
c
p
@clever-sunset-76585 wouldn’t it make more sense if the
stack
parameter remained required, and you added a
stack init
command to the task, that uses this parameter for the stack init, but does not try to do the select first?
Such a
stack init
command could then also “swallow” the error that occurs if the stack already exists. Something we would otherwise need to do in the pipeline.
c
Yep that’s what I am thinking too. There is a need for an “ephemeral” stack capability in Pulumi itself and I think there is an issue open in
pulumi/pulumi
. I implemented a similar thing for our Octopus Deploy Step Template too. It allows you to create a stack of if it does not exist.
m
+1 for this