How can my function in a VPC access classic network resources?
If your function runs in a VPC and needs to access classic network resources, use ClassicLink to connect your classic network resources to the VPC, then grant your function the permissions to access that VPC.
Prerequisites
Before you begin, ensure that you have:
A Function Compute function configured to run in a VPC
Classic network resources that the function needs to access
Enable access to classic network resources
Use ClassicLink to connect your classic network resources to the VPC where your function runs. For setup instructions, see Overview.
Grant your function the permissions to access the VPC.