Opiniones sobre Implementa una función de Cloud Run con la línea de comandos

340045 opiniones

Did not get the "serviceAccountTokenCreator" notification... Had to do it manually: student_01_a394bef907c6@cloudshell:~/gcf_hello_world (qwiklabs-gcp-02-82f653f8323c)$ gcloud functions deploy nodejs-pubsub-function \ --gen2 \ --runtime=nodejs22 \ --region=asia-south1 \ --source=. \ --entry-point=helloPubSub \ --trigger-topic cf-demo \ --stage-bucket qwiklabs-gcp-02-82f653f8323c-bucket \ --service-account cloudfunctionsa@qwiklabs-gcp-02-82f653f8323c.iam.gserviceaccount.com \ --allow-unauthenticated Service account [service-598950412986@gcp-sa-pubsub.iam.gserviceaccount.com] is missing the role [roles/iam.serviceAccountTokenCreator]. Pub/Sub needs this role to create identity tokens. For more details, please see https://cloud.google.com/pubsub/docs/push#authentication Bind the role [roles/iam.serviceAccountTokenCreator] to service account [service-598950412986@gcp-sa-pubsub.iam.gserviceaccount.com]? (Y/n)? ERROR: (gcloud.functions.deploy) ResponseError: status=[400], code=[], message=[Service account service-598950412986@gcp-sa-pubsub.iam.gserviceaccount.com does not exist.] student_01_a394bef907c6@cloudshell:~/gcf_hello_world (qwiklabs-gcp-02-82f653f8323c)$ gcloud services enable \ cloudfunctions.googleapis.com \ eventarc.googleapis.com \ pubsub.googleapis.com \ run.googleapis.com Operation "operations/acf.p2-598950412986-b3187be8-5b17-4386-82c1-d8d6cc6ef3c9" finished successfully. student_01_a394bef907c6@cloudshell:~/gcf_hello_world (qwiklabs-gcp-02-82f653f8323c)$ gcloud beta services identity create \ --service=pubsub.googleapis.com \ --project=qwiklabs-gcp-02-82f653f8323c Service identity created: service-598950412986@gcp-sa-pubsub.iam.gserviceaccount.com student_01_a394bef907c6@cloudshell:~/gcf_hello_world (qwiklabs-gcp-02-82f653f8323c)$ gcloud projects add-iam-policy-binding qwiklabs-gcp-02-82f653f8323c \ --member="serviceAccount:service-598950412986@gcp-sa-pubsub.iam.gserviceaccount.com" \ --role="roles/iam.serviceAccountTokenCreator" Updated IAM policy for project [qwiklabs-gcp-02-82f653f8323c]. bindings: [output truncated] student_01_a394bef907c6@cloudshell:~/gcf_hello_world (qwiklabs-gcp-02-82f653f8323c)$ gcloud functions deploy nodejs-pubsub-function --gen2 --runtime=nodejs22 --region=asia-south1 --source=. --entry-point=helloPubSub --trigger-topic cf-demo --stage-bucket qwiklabs-gcp-02-82f653f8323c-bucket --service-account cloudfunctionsa@qwiklabs-gcp-02-82f653f8323c.iam.gserviceaccount.com --allow-unauthenticated Created .gcloudignore file. See `gcloud topic gcloudignore` for details. Preparing function...done. Deploying function... [output truncated] state: ACTIVE updateTime: '2026-05-12T18:13:41.454831828Z' url: https://asia-south1-qwiklabs-gcp-02-82f653f8323c.cloudfunctions.net/nodejs-pubsub-function student_01_a394bef907c6@cloudshell:~/gcf_hello_world (qwiklabs-gcp-02-82f653f8323c)$

Phil R. · Se revisó hace 6 meses

Welialdere W. · Se revisó hace 6 meses

A19_SAP1_B3_65_Khushboo J. · Se revisó hace 6 meses

Rupali M. · Se revisó hace 6 meses

Dayquan L. · Se revisó hace 6 meses

Ricardo A. · Se revisó hace 6 meses

25EU08R0200 - C. · Se revisó hace 6 meses

KANDREGULA N. · Se revisó hace 6 meses

Rodrigo T. · Se revisó hace 6 meses

Barbara M. · Se revisó hace 6 meses

Exitoso a la primera

Gonzalo Gabriel G. · Se revisó hace 6 meses

Manuel M. · Se revisó hace 6 meses

Ahmed M. · Se revisó hace 6 meses

Adrien J. · Se revisó hace 6 meses

todo estuvo bien GAD

Sergio M. · Se revisó hace 6 meses

Sergey F. · Se revisó hace 6 meses

;;

25EU07R0034 - M. · Se revisó hace 6 meses

Tochukwu U. · Se revisó hace 6 meses

MADDI S. · Se revisó hace 6 meses

A19_SAP1_B2_38_ S. · Se revisó hace 6 meses

Rahima S. · Se revisó hace 6 meses

Isael M. · Se revisó hace 6 meses

Chaniella Nelly M. · Se revisó hace 6 meses

Aditi-C G. · Se revisó hace 6 meses

Gregory D. · Se revisó hace 6 meses

No garantizamos que las opiniones publicadas provengan de consumidores que hayan comprado o utilizado los productos. Google no verifica las opiniones.