https://pulumi.com logo
v

victorious-dusk-75271

08/21/2022, 12:07 PM
so there is no way to get map object if its contains secret?
Copy code
error: Error: Cannot call 'getOutputValue' if the referenced stack output is a secret. Use 'getOutput' instead.
e

echoing-dinner-19531

08/22/2022, 12:13 PM
Yes, just use getOutput instead. You'll get an Output<object>, and while normally doing things inside an apply can lead to preview issues, in the case of stack outputs the Output will always resolve so it's not in issue with those.
👍 1
v

victorious-dusk-75271

08/22/2022, 12:14 PM
Thanks. i solved it with
getOutput().apply(x => x.something)
:)
4 Views