Hi Guys, What is the best way to go about automati...
# general
g
Hi Guys, What is the best way to go about automating deletion of stack.
pulumi destroy
does not work with preview in non-interactive fashion. Anyone who has good ideas about goind about it? There are some open for the same like https://github.com/pulumi/pulumi/issues/10966 and https://github.com/pulumi/pulumi/issues/1666, but in the meantime was looking for some workaround
s
Does
pulumi destroy -y
not produce the desired result?
g
Hey @salmon-account-74572, This is destroy the cluster yes, but what I am looking for is preview, I have gitlab pipelines, preview --> apply, once preview succeeds, we will do apply, In current case preview doesn't work via automation script. something similar to
terraform plan -destroy -out destroyplan
s
OK, I think I get what you’re driving at. I don’t think there is a workaround at this point. Update plans (which are not yet GA) might help, but it’s too early to tell yet.