getting error in TypeScript, `export const vpcPub...
# aws
l
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
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
@late-printer-99022 try to map/apply it.
l
Yes, tried.