https://pulumi.com logo
#golang
Title
# golang
h

hundreds-article-77945

01/18/2022, 1:48 PM
Is it possible to check if a resource exists? I’m attempting to default a field to its current value if not explicitly provided.
I tried doing a
GetResource
and then pulling out that field before passing it through to the corresponding
RegisterResource
. That works fine. But if the resource doesn’t exist yet, a
resource X does not exist
error is thrown and I can’t seem to catch it.
46 Views