https://pulumi.com logo
#aws
Title
l

late-printer-99022

01/12/2020, 6:37 AM
getting error in TypeScript,
export const vpcPublicSubnetIds = vpc.publicSubnetIds.join(',');
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://pulumi.io/help/outputs> for more details.\nThis function may throw in a future version of @pulumi/pulumi.,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://pulumi.io/help/outputs> for more details.\nThis function may throw in a future version of @pulumi/pulumi."
w

white-balloon-205

01/12/2020, 7:42 PM
Indeed - you cannot call toString on an Output object. Have you tried following the guidance in that message - or in the link that message provides?
f

flat-insurance-25294

01/13/2020, 7:49 AM
@late-printer-99022 try to map/apply it.
l

late-printer-99022

01/14/2020, 12:32 PM
Yes, tried.