https://pulumi.com logo
p

powerful-room-57148

05/26/2022, 6:15 PM
👋 it would be really helpful for me if my Pulumi code had some way to detect, when it’s being run, if it’s in the context of a
preview
or an
up
operation… any chance there’s some way to do this?
(I’m aware that if one is following the Pulumi model properly, this should be completely unnecessary. Unfortunately, there is one corner of my project that is deviating from the Pulumi model 😞 )
l

little-cartoon-10569

05/26/2022, 11:12 PM
pulumi.isDryRun()
gives you that info.
p

powerful-room-57148

05/26/2022, 11:37 PM
Thank you!