Skip to content
Advertisement

Tag: google-cloud-platform

Can I use the service account of a GCP VM (xxx-compute@developer.gserviceaccount.com) instead of SA json file to make api calls using python?

Currently, I am using some xxxx service account credential json file to make REST API Calls I do not want to use this json file anymore, instead i want to use Compute Engine service account (xxx-compute@developer.gserviceaccount.com) to call API’s, Can someone tell me what change i have to do in python so that it uses VM’s service account?? Answer I

Cannot add private python dependency to cloud function

I am trying to deploy a python cloud function on GCP, using a python package pushed on the artifact registry of another project. I followed the instructions off the google cloud documentation: The service account that deploys the cloudbuild has the role: Artifact Registry Reader The error in cloudbuild: the requirements.txt the setup.py of the package the cloudbuild.yaml that deploys

Advertisement