This message was deleted.
# general
s
This message was deleted.
w
You can just use the libraries in your language of choice to shell out to a command (or do anything else for that matter!). This is somewhat common in Pulumi. You can do this inside an
apply
on the outputs you depend on so that it runs at the right time, and can use pulumi.runtime.isDryRun() to skip doing it in preview if appropriate.
🙂 1
e
@white-balloon-205 There's no
apply
on custom resources like cluster role bindings. Is there a way to wait for those, too?
Also, in TypeScript how can I turn a Promise from calling out to the shell into an Output<Resource> so I can use it in a dependsOn section?
w
There's no 
apply
 on custom resources like cluster role bindings. Is there a way to wait for those, too?
Every property of the resource will be an
Output
with an
apply
. Pick the ones you depend on, and if there are more than one use
pulumi.all
.
Also, in TypeScript how can I turn a Promise from calling out to the shell into an Output<Resource> so I can use it in a dependsOn section?
pulumi.output(promise)
. Or if you return the promise from an
apply
callback, it will automatically get folded in to the
Output
returned from
apply
.