Thread
#general
    s

    stocky-petabyte-29883

    2 months ago
    Hey Can I check if a resource exists in pulumi without throwing an error? I am trying to see if an LB exists and if it does then create some subsequent resources. I tried wrapping the get method in a try catch without much success
    l

    little-cartoon-10569

    2 months ago
    The idiomatic way to do this is to import the LB once, then never check again.
    s

    stocky-petabyte-29883

    2 months ago
    I need this behaviour at the initial execution of every stsck So no I need the behaviour, is it possible to it with pulumi
    Is there a way to check if a resource exists in pulumi and to not fail the execution if it doesn't exist
    e

    echoing-dinner-19531

    2 months ago
    s

    stocky-petabyte-29883

    2 months ago
    Yup
    e

    echoing-dinner-19531

    2 months ago
    Do vote and comment your use case on there if it's not already covered. Active tickets are easier to prioritise.