Hi there - Using the automation API, is there any ...
# general
q
Hi there - Using the automation API, is there any way to know my execution context(up, preview, destroy) within my Program? I am trying to limit when an Output.apply() is executed so that is will only be executed on
up
executions.
I am using a Python program. I am currently passing in an ENVVAR with the execution context and reading that in with the program, but that doesn’t feel very kosher.
b
There is a is_dry_run properly in the Pulumi sdk
q
And that is set based on if its a preview vs up/destroy im inferring?
b
yes that’s right
q
Wonderful news - thanks!