This message was deleted.
# typescript
s
This message was deleted.
g
something like
Copy code
pushEndpoint: pulumi.interpolate `<https://example.com/api/v2/logs?api-key=${apiKey}&protocol=gcp>`
b
@green-stone-37839 Thanks! That worked. I have been trying this for a couple of hours and I could have sworn that I tried this method. Does this work because the secret is decrypted only one when the method is called versus being placed into a new string and then used later?
g
This works because the
pushEndpoint
property itself accepts outputs. An output can never be a plain value (string, bool, etc) but using apply (or interpolate in this case) you can construct a new output that fits your purpose.
Basically, you can only interrogate an output's underlying value in an apply, interpolate, etc.