A function can access only a single virtual private cloud (VPC). If your function needs to access resources in multiple VPCs, you can combine these VPCs into one large VPC and grant your function access permissions on the large VPC.