If `Output ` is not dealt properly in before seria...
# getting-started
t
If
Output
is not dealt properly in before serialization. The resulting string has this writing instead of value:
Copy code
Calling [toString] on an [Output<T>] is not supported.\n\nTo get the value of an Output<T> as an Output<string> consider either:\n1: o.apply(v => `prefix${v}suffix`)\n2: pulumi.interpolate `prefix${v}suffix`\n\nSee <https://www.pulumi.com/docs/concepts/inputs-outputs> for more details.\nThis function may throw in a future version of @pulumi/pulumi
Why is there not at least and error logged out that something like this happened? I can imagine string like this shipped into the resulting infrastructure without any notice (if you not examining the outputs thoroughly).
f
It's not the default currently. You can have this behavior via setting
PULUMI_ERROR_OUTPUT_STRING
env var thanks to https://github.com/pulumi/pulumi/pull/14811
t
Thanks ❤️