Created
June 20, 2020 23:40
-
-
Save bharatmicrosystems/937e3fcf9835fdaa18e2dfbae82478b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ 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