hardgcloud

Deploy a Cloud Function connected to a VPC network via a connector

command

gcloud functions deploy FUNCTION_NAME --vpc-connector CONNECTOR

also accepted

gcloud functions deploygcloud functions deploy FUNCTION_NAME --vpc-connector

Command breakdown

Part of the Google Cloud CLI (gcloud) — Cloud Functions category.

gcloudfunctionsdeployFUNCTION_NAME--vpc-connectorCONNECTOR
FlagPurpose
--vpc-connectorBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →