p

    plain-pillow-11037

    3 months ago
    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

    billowy-army-68599

    3 months ago
    you can use
    pulumi state unprotect --all
    p

    plain-pillow-11037

    3 months ago
    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

    billowy-army-68599

    3 months ago
    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

    plain-pillow-11037

    3 months ago
    That’ll do just fine. Thank again.