Cleanup: Is there any helpers for cleaning up dev/...
# general
c
Cleanup: Is there any helpers for cleaning up dev/test-ish stacks? I see I can use tags on stacks, but no way of using a filter on
destroy
or
rm
. I could ofc do it myself using
pulumi stack ls --tag isDevTempEnv true
and then destroy them one by one in a loop.
e
That’s what we hear most people doing, we don’t really want to make things like destroy/rm operate across collections of stacks. It makes the semantics of these methods much harder to maintain and reason about. If you need a loop use a loop, you could even use the automation api to do this loop in your preferred language.