This message was deleted.
# typescript
s
This message was deleted.
l
You can use the SDK provided by the appropriate cloud provider.
s
In addition to Paul's excellent suggestion, some resource types also have functions that are designed to return multiple matches, e.g.
aws.ec2.getSubnets()
. You could pass it criteria that should return exactly one if it matches.
f
Thank you. I am doing exactly that with getUserAssignedIdentityOutput. However I wanted to catch the error (when the resource doesn’t exist) but the function itself isn’t catchable. Was wondering if there was any other way to approach this?