https://pulumi.com logo
#typescript
Title
# typescript
n

nutritious-flower-51098

10/07/2020, 2:05 PM
We need to call an external library during the apply phase on a promise Output<string>. Wrapping it inside of
pulumi.interpolate
doesn’t help. Is there any pattern to follow for this kind of functionality?
l

limited-rainbow-51650

10/07/2020, 2:23 PM
If there is no existing provider for the API you need to call, I would check if I could model it as a resource backed by a dynamic provider: https://www.pulumi.com/blog/dynamic-providers/
w

worried-city-86458

10/07/2020, 9:56 PM
Wrap your continuation with 
if (!pulumi.runtime.isDryRun()) { }
? i.e. inside the 
apply
Otherwise try a dynamic provider like Ringo says - assuming your language is supported
n

nutritious-flower-51098

10/08/2020, 1:23 PM
thanks!