This message was deleted.
# general
s
This message was deleted.
w
Hmm maybe I just have to keep lifting this value up into an input of its own until I eventually get to the place where I want to use the result which is actually in input.
Annoying that I can't cache the result though. I need to use it multiple times. I'm assuming Pulumi isn't smart enough to do that.
l
It is safe to call
.get
functions within an apply (you should not create resources within applies though).
So you can do something like:
Copy code
foo = new bucket()
newOutput = foo.ARN.apply( arn => ec2.getSomething(arn) )