This message was deleted.
s
This message was deleted.
e
Your pulumi program won't run during a
destroy
call, but you can tell the difference between preview and update with
runtime.is_dry_run()
Although most cases like this what you actually want is a dynamic provider: https://www.pulumi.com/blog/dynamic-providers/