sparse-intern-71089
12/26/2019, 1:40 AMflat-insurance-25294
12/26/2019, 3:27 PMgentle-diamond-70147
12/26/2019, 4:57 PMconst zones = aws.getAvailabilityZones().zoneIds;
const subnets = zones.map((zoneId, i) => {
return new aws.ec2.Subnet(`demo-${i}`, {
vpcId: vpc.id,
availabilityZoneId: zoneId,
cidrBlock: `10.0.${i}.0/22`,
tags: {
Name: `demo-${i}`,
},
}, { parent: vpc, })
});