few-alarm-62671
01/24/2022, 3:39 AMup
, destroy
or preview
during execution? Can’t sort this out and was wandering how to use lambda_.get_invocation
to differ what to do in each casegreat-queen-39697
01/24/2022, 8:26 PMargs
list. For example: https://github.com/pulumi/automation-api-examples/blob/main/python/local_program/automation/main.pyfew-alarm-62671
01/25/2022, 3:12 AMminiature-musician-31262
01/25/2022, 11:00 PMpulumi.runtime.is_dry_run()
— that’ll tell you whether the current execution is a preview (true) or an update (false): https://www.pulumi.com/docs/reference/pkg/python/pulumi/#pulumi.runtime.is_dry_run