brainy-policeman-17905
10/21/2020, 2:41 PMOutput
Input
data structure, I've run this example
import * as pulumi from "@pulumi/pulumi";
const x: pulumi.Output<string> = pulumi.output("testing")
console.log(x.apply(x => x))
I was expecting to have a console.log
saying "testing" when I run pulumi preview
in the terminal nut instead I got
pulumi:pulumi:Stack (ww-pulumi-dev):
OutputImpl {
__pulumiOutput: true,
resources: [Function],
allResources: [Function],
isKnown: Promise { <pending> },
isSecret: Promise { <pending> },
promise: [Function],
toString: [Function],
toJSON: [Function]
}
I guess my question is how can I output stuff to the terminal based in a Output
object?