Using Console
Using CLI
--vpc-connector
flag with the gcloud functions deploy
command. The --vpc-connector
flag specifies the name of the Serverless VPC Access connector to use for the function.Using Python
google.cloud.functions.v1.VpcConnector
client library in Python.google.cloud.functions.v1.CloudFunctionsServiceClient
client library in Python.<your-project-id>
, <your-region>
, <your-connector-name>
, <your-connector-uri>
, and <your-function-name>
with the appropriate values for your GCP environment.