@billions-wolf-76466 the "Dryrun" property is available in every SDK on the context (Go) or a function on the Pulumi package. It returns true if you're in a preview, or false if it's a real deploy.On destroy, your Pulumi program doesn't run. Destroy works from all of the resources in the state of the stack, using the dependencies recorded in the state to destroy resources in reverse order.
4 months ago
Thanks, I found that after asking on twitter too. Though I didn't know destroy didn't run my program but I guess it makes sense since it's not really needed for that.