how can i check if i'm running in preview mode. ba...
# general
t
how can i check if i'm running in preview mode. basically want to restrict the program to not run during previews/dry runs
l
pulumi.isDryRun(), I think? Or maybe it's pulumi.Runtime.isDryRun()?
A good alternative to this is to ensure that Pulumi is running with a user / rule that has no write privileges. That's safer (since anyone can remove the isDryRun() check).
t
found it
yep!
thanks
211 Views