Skip to content

Instantly share code, notes, and snippets.

@bharatmicrosystems
Created June 20, 2020 23:40
Show Gist options
  • Select an option

  • Save bharatmicrosystems/937e3fcf9835fdaa18e2dfbae82478b6 to your computer and use it in GitHub Desktop.

Select an option

Save bharatmicrosystems/937e3fcf9835fdaa18e2dfbae82478b6 to your computer and use it in GitHub Desktop.
$ gcloud functions deploy startInstancePubSub \
--trigger-topic start-instance-event \
--runtime nodejs10 \
--region europe-west2 \
--ingress-settings internal-only \
--service-account compute-instance-admin-sa@<project-id>.iam.gserviceaccount.com
Allow unauthenticated invocations of new function
[startInstancePubSub]? (y/N)? N
WARNING: Function created with limited-access IAM policy. To enable unauthorized access consider "gcloud alpha functions add-iam-policy-binding startInstancePubSub --member=allUsers --role=roles/cloudfunctions.invoker"
Deploying function (may take a while - up to 2 minutes)...⠹
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment