https://pulumi.com logo
b

broad-island-71889

09/13/2023, 10:00 PM
Hi guys, Could you please tell me if there is a way to determine if what operation do we run currently in pulumi? I’m specifically interested in determine
pulumi refresh
. Context: we assume different roles depends on pulumi operation: preview(RO)/deploy(RW). Currently we use
pulumi.runtime.is_dry_run()
, but for some reason it returns true for
refresh
e

echoing-dinner-19531

09/13/2023, 10:56 PM
We don't actually run the user program during a refresh at the moment. It works purely one what's in the statefile.