According to Pulumi's guidance on inputs and outputs, I am trying to use console.log()
to output a string value.
console.log(
`>>> masterUsername`,
rdsCluster.masterUsername.apply((v) => `swag${v}swag`)
);
This code snippet returns:
>>> masterUsername OutputImpl {
__pulumiOutput: true,
resources: [Function (anonymous)],
allResources: [Function (anonymous)],
isKnown: Promise { <pending> },
isSecret: Promise { <pending> },
promise: [Function (anonymous)],
toString: [Function (anonymous)],
toJSON: [Function (anonymous)]
}
I have executed
o.apply(v => `prefix${v}suffix`)
as instructed.
Is there a way to properly display a Pulumi value using console log?