sparse-intern-71089
10/01/2019, 4:43 PMacceptable-army-69872
10/01/2019, 5:12 PMconst allSubnets = vpc.privateSubnets.concat(vpc.publicSubnets)
let peeringRoutes: aws.ec2.Route[] = [];
let it = 0;
for (var sn of allSubnets) {
if (sn.routeTableAssociation === undefined) {
continue;
}
peeringRoutes.push(
new aws.ec2.Route(`vpc-peering-route-${it}`, {
destinationCidrBlock: "10.200.1.0/24",
routeTableId: sn.routeTableAssociation.routeTableId,
vpcPeeringConnectionId: workspaceToC1PeeringConnection.id
})
);
it++;
}