sorry, I mean a pulumi.output
# typescript
sorry, I mean a pulumi.output
pretty sure there isn't a simple way to "extract" the underlying value from an output. You can do
Copy code
myOutput.apply(val => {
inside the apply you can access underlying. However for most pulumi stuff you can just pass outputs to Inputs and everything is dandy
Indeed - as the pinned message in this channel notes:
If your query is related to Output, the answer is generally to use apply. ๐Ÿ™‚
This section in the docs has more details: The key point is that an Output may not yet have a value (until a cloud resource has been created or updated), so you cannot just get its value. You need to provide a callback that will run when itโ€™s value does become available (possibly never in the case of a preview).
๐Ÿ’ฏ 1