Use ClassicLink to connect resources in the classic network to the virtual private cloud (VPC). Then, grant your function the permissions required to access the VPC. For more information, see Overview.