Ensure that your Google Cloud functions are configured to use Serverless VPC Access in order to connect functions directly to your VPC network, allowing access to other VPC resources such as VM instances, MemoryStore instances, or any other cloud resources with an internal IP address.
excellence
optimisation
Serverless VPC Access makes it possible for you to connect directly to your Virtual Private Cloud (VPC) network from a serverless environment such as Google Cloud Functions. Key benefits include enhanced security (no exposure to the Internet) and lower latency compared to typical Internet communication. It operates via connectors, managing traffic between your serverless setup and VPC. To enable Serverless VPC Access for your Google Cloud functions, create a VPC connector in your Google Cloud project, associating it with a VPC network and region. This enables configuration of serverless services to utilize the connector for outbound network traffic, ensuring secure, low-latency connectivity.
Audit
To determine if Serverless VPC Access is enabled for your Google Cloud functions, perform the following operations:
Remediation / Resolution
To enable Serverless VPC Access for your Google Cloud functions, perform the following operations:
References
- Google Cloud Platform (GCP) Documentation
- Serverless VPC Access
- Connect to a VPC network
- Configure network settings
- GCP Command Line Interface (CLI) Documentation
- gcloud projects list
- gcloud functions list
- gcloud functions describe
- gcloud compute networks vpc-access connectors create
- gcloud functions deploy