Hi all ! Is there way to determine `pulumi delete`...
# general
w
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
PULUMI_NODEJS_DRY_RUN
might do it for you.
w
Hey ! Thanks for responding. I am using Python for scripting here
i
I don’t see it listed there but I see in in my typescript env. Print out your env and check it out
w
I ve updated the post but I think what I am looking for something different
i
If you want one resource to be deleted before another, chain them with
dependsOn
w
These resources exist outside of Pulumi state tracking.
But they are created when the stack comes up