Thread
#typescript
    p

    powerful-room-57148

    4 months ago
    👋 it would be really helpful for me if my Pulumi code had some way to detect, when it’s being run, if it’s in the context of a
    preview
    or an
    up
    operation… any chance there’s some way to do this?
    (I’m aware that if one is following the Pulumi model properly, this should be completely unnecessary. Unfortunately, there is one corner of my project that is deviating from the Pulumi model 😞 )
    l

    little-cartoon-10569

    4 months ago
    pulumi.isDryRun()
    gives you that info.
    p

    powerful-room-57148

    4 months ago
    Thank you!