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
Tag: google-cloud-platform
Verify Client ID and Client Secret before using it in Application
We have a use case in which Admin can set Google Or Microsoft’s Apps Client Id and Secrets that can later be used for all users who sign up with this Admin’s link, Is there a way to verify these fields before saving/using them? like for Microsoft,How do I verify this info that admin is providing? Is there any API
How do I now (since June 2022) send an email via Gmail using a Python script?
I had a Python script which did this. I had to enable something in the Gmail account. For maybe 3 years the script then ran like this: In May or so of this year I got a message from Google saying that authority to use emails from scripts would be tightened. “Oh dear”, I thought. Some time in June I
Why do I get `secretmanager.versions.access` denied in GCP?
I am trying to access a secret stored in secrets manager. I created a service account with owner role. I created a key from it. I run: but I get: I checked the secret_name was the same as the secret’s value in secret manager. I have tried adding Secret Manager Secret Accessor and Secret Manager Viewer roles. Edit: running this
How can I add data to BigQuery without problems with rate limits? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 8 months ago. Improve this question I currently have a system in which I want to send data from that system via a Google Cloud Function
What is the equivalent of connecting to google cloud storage(gcs) like in aws s3 using s3fs?
I want to access google cloud storage as in the code below. Answer You’re looking for gcsfs. Both s3fs and gcsfs are part of the fsspec project and have very similar APIs. Note that both of these can be accessed from the fsspec interface, as long as you have the underlying drivers installed, e.g.: fsspec is the file system handler
Authentication using python Kubernetes api in GCP is not working
I would like to be able to access GKE (kubernetes) cluster in GCP from python kubernetes client. I cant authenticate and connect to my cluster and i dont find the reason. Here is what i tried so far. Answer I’d like to get the configuration working I have it work where, the code is running off cluster and it produces
I’m looking to connect a Google VM to a website
I need reflection, vision and documentation on my problem. I wrote a python script to calculate something from an API and export the result in a CSV file. Then, I use a JavaScript script to display the data from this CSV file on a building website. I need to have the latest data available for my website, so I opened
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
How to trigger async job from a Cloud Function
I have a Cloud Function (Python) which is triggered by http from web client, it has to calculate something and respond FAST. I would like to save the http request parameters into a database (for analytics). If i just initiate a WRITE to my postgresql, the function will have to wait for it, and it will be slower. Using PubSub,