Is there a way to redirect the pulumi's stream dis...
# general
b
Is there a way to redirect the pulumi's stream display outputs to an external ressource (let's say Elastic search or another DB for example) ? I'm actually wrapping the
pulumi
binary with a python script that does the job but it feels very hacky and not secure. anyone have an idea ?
w
Other than piping stdout ( possibly in diff mode), not really. We do now have
—json
support, though I believe it waits till completion. That may work for you? Note that you can also retrieve data from the pulumi service if you need to check on the status of a deployment. These REST APIs aren’t yet documented, but are generally stable since we have arbitrarily old CLI clients using them.
b
Thanks for the reply, json output is only available on preview command if i'm not mistaken, for now I'm parsing stdout. Thanks.