Hey Can I check if a resource exists in pulumi wit...
# general
s
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
The idiomatic way to do this is to import the LB once, then never check again.
s
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
s
Yup
e
Do vote and comment your use case on there if it's not already covered. Active tickets are easier to prioritise.