wonderful-napkin-50018
03/30/2021, 11:20 AMsubnetIds
) and need to convert it to an Input<string>[]
(so an array of string inputs). How can I do this?export const publicSubnetIds = infra.requireOutputValue('publicSubnetIds');
export const publicSubnetId1 = pulumi.output(publicSubnetIds)[0];
export const publicSubnetId2 = pulumi.output(publicSubnetIds)[1];
little-cartoon-10569
03/30/2021, 7:46 PMpulumi.output(publicSubnetIds)[0]
is working, since pulumi.output(publicSubnetIds)
should be a Promise<string[]> which isn't indexable. If there's some Pulumi magic and lifting going on, then great. Otherwise, that might be compiling because of the magic of any? Is it working in this form?wonderful-napkin-50018
03/31/2021, 12:06 PM