sparse-intern-71089
03/30/2021, 11:20 AMwonderful-napkin-50018
03/30/2021, 12:11 PMexport 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 PMlittle-cartoon-10569
03/30/2021, 7:49 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?little-cartoon-10569
03/30/2021, 7:50 PMwonderful-napkin-50018
03/31/2021, 12:06 PMwonderful-napkin-50018
03/31/2021, 12:06 PM