79402056

Date: 2025-01-31 07:44:00
Score: 2.5
Natty:
Report link

I ran the same command with verbosity set to debug as follows

enter code here
"gcloud functions deploy <my_function> --no-gen2 --region=us-central1 - 
-entry-point=handle_event --memory=256MB --retry --runtime=python310 -- 
source=gs://<mybucket>/<myfunction.zip> -- 
timeout=30 --trigger-topic=<my pubsub> --set-env-vars=MYSQL_USER= 
<myuser>,MYSQL_PASSWORD=<mypass>,MYSQL_DATABASE= 
<mydb>,INSTANCE_CONNECTION_NAME=<myproject>:us-central1:<mydb>" --build-service-account=<mybuildservice account> --verbosity=debug

And that gave me a exact problem behind error "please provide the build service account in the format projects/[project_id]/serviceaccounts/[service_account_email]]"

I was giving just the service account e-mail

After I corrected that to needed format the error went away

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Yogesh Devi