I'm associating vpc to my lambda like this:
self.vpc = _ec2.Vpc.from_vpc_attributes(self, 'vpc', vpc_id=self.vpc_id,
availability_zones=['eu-west-1a', 'eu-west-1b', 'eu-west-1c'],
private_subnet_ids=[self.private_subnet_1, self.private_subnet_2,
self.private_subnet_3])
Now when I tried to associate this vpc with my lambda it shows a warning:
No routeTableId was provided to the subnet at 'PrivateSubnet1'. Attempting to read its .routeTable.routeTableId will return null/undefined.
routetableid is optional as per documentation. So how can I get rid of this warning message?
Is there any methods can I use to find the lists of routtableid based on vpc and private subnets?