hardgcloud

Deploy a Cloud Function using a specific service account identity

command

gcloud functions deploy FUNCTION_NAME --service-account SA_EMAIL

also accepted

gcloud functions deploygcloud functions deploy FUNCTION_NAME --service-account

Command breakdown

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

gcloudfunctionsdeployFUNCTION_NAME--service-accountSA_EMAIL
FlagPurpose
--service-accountBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →