This message was deleted.
# dotnet
s
This message was deleted.
b
I've looked at
Pulumi.Deployment.Instance
but that only has
IsDryRun
. Nothing to indicate if the stack is being destroyed.
b
If you use automation api you can subscribe to engine events and check for a delete/destroy action against a specific resource so that you can do something. But no, there is not a way to do this in your Pulumi program itself.
👍 1