Hi everyone I am trying to understand how Pulumi w...
# typescript
b
Hi everyone I am trying to understand how Pulumi works behind the scenes particularly the
Output
Input
data structure, I've run this example
Copy code
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
Copy code
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?