This message was deleted.
# aws
s
This message was deleted.
👀 1
g
m
thanks @great-sunset-355, I'll check those links out!
g
in general, I tend to avoid
resource.get
because in past it had some weird consequences (I do not remember now, sorry) and use
get_resource
or rather
get_resource_output
which works as expected
m
is there any advantage of using
get_resource_output
over
get_resource
? The whole input / output thing is still a bit esoteric to me. I find that whenever I need a resource value (e.g. the ID), most times I have to
apply()
to use it.
l
The get_resource functions return (your language's version of) a promise, which you have to handle in the normal way. The get_resource_output functions wrap those promises in outputs. The primary benefit of this is member lifting: you can pass a value inside the output object into a Pulumi resource constructor without waiting for the promise to resolve.
🙏 1