https://pulumi.com logo
Title
w

worried-xylophone-86184

07/01/2022, 1:49 PM
Hi all ! Is there way to determine
pulumi delete
during the flow of the script? Just like how there is runtime has a function called is_dry_run to check if its a preview execution or not. Basically I want to perform some deletes on another service before the actual delete of resources happen
i

important-leather-28796

07/01/2022, 2:52 PM
PULUMI_NODEJS_DRY_RUN
might do it for you.
w

worried-xylophone-86184

07/01/2022, 3:08 PM
Hey ! Thanks for responding. I am using Python for scripting here
i

important-leather-28796

07/01/2022, 3:09 PM
I don’t see it listed there but I see in in my typescript env. Print out your env and check it out
w

worried-xylophone-86184

07/01/2022, 4:06 PM
I ve updated the post but I think what I am looking for something different
i

important-leather-28796

07/01/2022, 5:08 PM
If you want one resource to be deleted before another, chain them with
dependsOn
w

worried-xylophone-86184

07/04/2022, 3:02 AM
These resources exist outside of Pulumi state tracking.
But they are created when the stack comes up