This message was deleted.
# general
s
This message was deleted.
👍 1
l
Not out of the box. You can make specific resources safe from destroyed by setting the protect opt to true, but that's it.
You could write a dynamic provider that adds the protect opt to every resource based on a stack export from another stack...
That would require you to up your stack A before and after stack B.. but it would work (I think).
Another option would be to wrap your stack-A Pulumi program in automation-api, which checks for stack B and prevents deletes. That would be much easier.