in lib/subnet-routing.ts [18:27]
constructor(scope: cdk.Construct, id: string, props: SubnetRoutingProps = {}) {
super(scope, id);
// Add the routing for the VPC subnets
props.vpc!.isolatedSubnets.forEach(subnet => new ec2.CfnRoute(this, props.prefix!.concat(uuidV4()).concat("-tgw-route").toString(), {
destinationCidrBlock: "0.0.0.0/0",
routeTableId: subnet.routeTable.routeTableId,
transitGatewayId: props.transitGateway!.ref
}));
}