microscopic-florist-22719
06/20/2018, 6:26 PMlet azs = aws.getAvailabilityZones()
should work, thoughstocky-spoon-28903
06/20/2018, 6:26 PMmicroscopic-florist-22719
06/20/2018, 6:26 PMbig-soccer-75859
06/20/2018, 6:26 PMendpoint.get
takes multiple functions, how does that work, do they all run in parallel or something? https://github.com/pulumi/pulumi-cloud/blob/082b33b1a40c62e87df87dffd345ffe9c3874105/aws/api.ts#L101microscopic-florist-22719
06/20/2018, 6:27 PM(async () => {
let azs = await aws.getAvailabilityZones();
})();
stocky-spoon-28903
06/20/2018, 6:28 PMstocky-spoon-28903
06/20/2018, 6:28 PMstocky-spoon-28903
06/20/2018, 6:28 PMconst privateSubnets = cidrs.map(async (cidrBlock, index) => {
return new aws.ec2.Subnet(`${baseName}-subnet-${index + 1}`, {
vpcId: vpc.id,
cidrBlock: cidrBlock,
availabilityZone: (await azs).names[index],
tags: tags,
});
});
stocky-spoon-28903
06/20/2018, 6:28 PMazs = aws.getAvailabilityZones()
lemon-spoon-91807
06/20/2018, 6:31 PMlemon-spoon-91807
06/20/2018, 6:32 PMmicroscopic-pilot-97530
06/20/2018, 6:33 PMmicroscopic-pilot-97530
06/20/2018, 6:33 PMlemon-spoon-91807
06/20/2018, 6:33 PMbig-soccer-75859
06/20/2018, 6:33 PMlemon-spoon-91807
06/20/2018, 6:34 PMlemon-spoon-91807
06/20/2018, 6:34 PMbig-soccer-75859
06/20/2018, 6:34 PMlemon-spoon-91807
06/20/2018, 6:35 PMbig-soccer-75859
06/20/2018, 6:35 PMlemon-spoon-91807
06/20/2018, 6:35 PMbig-soccer-75859
06/20/2018, 6:35 PMbig-soccer-75859
06/20/2018, 6:35 PMbig-soccer-75859
06/20/2018, 6:36 PMbig-soccer-75859
06/20/2018, 6:36 PMhelpful-forest-30196
06/20/2018, 6:38 PMbitter-oil-46081
06/20/2018, 6:40 PMblue-answer-29496
06/20/2018, 6:42 PMstocky-spoon-28903
06/20/2018, 6:42 PMhelpful-forest-30196
06/20/2018, 6:43 PMhelpful-forest-30196
06/20/2018, 6:43 PM