Hello! I’m building some integration tests for som...
# automation-api
p
Hello! I’m building some integration tests for some resources that are
protected
. For the purposes of testing tear down/resource cleanup I need to
unprotect
the resources before destroying the stack. What’s the best way to do this?
b
you can use
pulumi state unprotect --all
p
Oh nice idea - Thanks! Do you by chance know if there’s a way to do this via the automation API vs the CLI?
b
we don't have support for it in automation API, but you could
execSync
the CLI in your automation API program
(or whatever language you're using)
p
That’ll do just fine. Thank again.