4,593 questions
-1
votes
0
answers
99
views
How to enable Google Sign-In for Firebase Auth via gcloud CLI / firebase CLI?
I'm trying to fully automate Firebase Auth provider setup via CLI (no manual Firebase Console clicks).
Using this SA token, I can successfully:
Initialize Firebase Auth: POST /v2/projects/{PROJECT}/...
-2
votes
0
answers
62
views
How to enable Firebase Authentication and add providers using the CLI [duplicate]
Is it possible to enable Firebase Authentication and add providers like Google, Apple, email auth using CLI?
This is important for agentic workflow. This is the only blocker to agent to completely ...
0
votes
0
answers
62
views
Resource location constraint being violated on google skills LAMP
Got this error during the Google Cloud Fundamentals: Getting Started with Cloud Marketplace skil path. Even choosing the zone they declare on the tutorial i wasn't able to finish. You guys know if i'm ...
0
votes
0
answers
54
views
KubernetesPodOperator with deferrable=True returns Forbidden on Cloud Composer 3
Environment:
Cloud Composer 3 (composer-3-airflow-2.10.2-build.13)
Region: europe-west1
Environment name: composer3-npd
Project: XXXXXXXXXX
Private environment: enabled
Problem: When using ...
Best practices
0
votes
2
replies
66
views
How to store Google Cloud Run config in version control: Terraform or Kubernetes?
At work we use Google Cloud Run (a wrapper around Knative).
All our infrastructure is provisioned via Terraform. We provision a Cloud Run service via Terraform in the following way:
resource "...
1
vote
1
answer
121
views
How to authenticate with Service Account in dataproc cluster for duckdb connection to BigQuery
I'm trying to authenticate with an already pre-signed-in service account (SA) in a Dataproc cluster.
I'm configuring a DuckDB connection with the BigQuery extension and I can't seem to reuse the ...
1
vote
2
answers
670
views
"ERROR: gcloud crashed (Warning): Scope has changed" when trying to run `gcloud auth application-default login --no-launch-browser`
I want to run some Python code that uses the Google Cloud Platform.
To log in the gcloud CLI, I used to use.
gcloud auth application-default login --no-launch-browser
But since recently it gives this ...
1
vote
1
answer
461
views
'str' object is not callable in Google SDK when trying to fetch a spreadsheet
I'm trying to fetch a spreadsheet with Google SDK. I'm logged into an account with a Service Account Token Creator role and the service account has access rights to the spreadsheet. This is my code:
...
0
votes
0
answers
95
views
Use Grpc-web with Cloud Endpoints gRPC for Cloud Run with ESPv2
I am creating a GRPC service that should be accessible from the web but have found no working guides for getting grpc-web to work with cloud-endpoints and ESPv2. I have used this guide to set ...
0
votes
1
answer
204
views
GCloud Pub/Sub Pull subscription limit of 5000 messages
Currently I am working on a project that publishes any received request contents to a pub sub topic and subsequent subscriber, in order to pull and batch process all of the messages at once every ...
2
votes
1
answer
405
views
`google.auth` python SDK not reading granted scopes from credentials file
I've run:
gcloud auth application-default login --client-id-file google_oauth_client_id.json --scopes="https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/calendar....
0
votes
0
answers
104
views
gcloud CLI + flags-file: problems with repeated flags
I am using the gcloud CLI to create a new Workstation configuration.
To simplify configuration management I am also using a yaml configuration file to specify flag values based on Google's ...
0
votes
0
answers
79
views
Oauth client authorization fails because of the Google ADC
I'm trying to work on my home project where I contact Google services like Gmail, Sheets, Drive. Services that are not Google Cloud per se.
I've implemented GmailApi quickstart guide for python, but ...
1
vote
1
answer
834
views
Vertex AI `gcloud ai models list` returns "Listed 0 items" on a fully activated project
I am trying to access Gemini models via the Vertex AI API but am unable to see any publisher models in my project.
Project ID: virio-462215
The Core Problem:
When I run the command gcloud ai models ...
0
votes
1
answer
109
views
Git Config Issue related to Git Credential Helper
I have been facing some authentication issue.
What is being used
Windows machine
Gcloud SDK is installed and configuration has been done
Google Cloud source repository
Git Bash terminal
Repository ...
0
votes
1
answer
51
views
Can't connect to SQL server using gcloud
I have an SQL Server setup in GCP. It has a private IP.
I have gcloud installed on ubuntu 20 (WSL2).
When I run this command I get an error:
> gcloud beta sql connect <instance name> --user=&...
0
votes
1
answer
125
views
Does appengine support WebSocketServer?
The google appengine documentation states websockets are supported, but in their example they use socket.io instead of a "regular" WebSocketServer.
my (simplified) nodejs server is super ...
0
votes
1
answer
869
views
Google Cloud Organization Policy iam.allowedPolicyMemberDomains INVALID_ARGUMENT for Verified Domain
I'm trying to set the Google Cloud Organization Policy constraints/iam.allowedPolicyMemberDomains to restrict IAM members to my organization's verified domain, sksolution.app. However, I'm ...
1
vote
1
answer
528
views
gcloud secrets create always fails with “INVALID_ARGUMENT: The provided Project ID ... does not match the expected format [projects/*]”
I'm trying to create a new secret in Google Cloud Secret Manager using the gcloud CLI, but I always get the following error:
echo -n "my-secret-value" | gcloud --project=[MY_PROJECT_ID] ...
0
votes
0
answers
45
views
Gcloud SDK For PowerShell Gcloud Error Duplicate Line Created In Config_* File
Every week, not all the time, I am getting this error in the my Powershell ps1 logs
This is a Windows Server
A few people have ps1 programs in this server
They may be using other service accounts
The ...
0
votes
1
answer
101
views
How to preserve only timestamp and mode of the file, an not other posix metadata when using "gcloud storage" command line interface?
When I use -P options with
gcloud storage cp -r -P gs://some/bucket/object ./
It tries to convert the user id also and fails with the following message
ERROR: Root permissions required to set UID ...
1
vote
0
answers
89
views
Google TTS Long Audio
I newbie working with Google TTS, I have code that allows me to use the long audio TTS and get the file from a bucket, however, when I am trying to do it with a long file that may give me 20 minutes ...
0
votes
1
answer
50
views
GCP Compute Engine custom image import from Trend Vision Zero Trust fails at translate-disk step (CentOS 7 DNS issue)
I'm trying to import a custom VM image (from Trend Micro Vision One Zero Trust Private Access) into Google Cloud Platform using the gcloud compute images import command. However, the process fails ...
0
votes
0
answers
211
views
Permission Denied for Org Admin trying to disable Organization Policy (iam.allowedPolicyMemberDomains) - even in Cloud Shell
I am an Organization Administrator (roles/resourcemanager.organizationAdmin) for my Google Cloud Organization, but I'm encountering a persistent "permission denied" error when trying to ...
0
votes
0
answers
195
views
Google Cloud and project ID from google.auth.default() in docker container
I'm playing Whac-A-Mole with Google Cloud authentication. Sorry for the lengthy question but since I have no idea where the problem is, I'm trying to give enough context.
With Python, calling google....
0
votes
0
answers
49
views
UnicodeDecodeError on macOS while Google Cloud SDK Homebrew installation
I'm encountering a UTF-8 decode error while installing Google Cloud SDK via Homebrew on macOS. Initially, I tried to download files from Google Cloud Storage using `gsutil -m cp* and received this ...
1
vote
0
answers
156
views
gcloud storage cp downloads exceed file size and result in corrupt file (e.g. 12.7GiB for 9.2GiB file)
I’m trying to download a .tar.gz file from a public Google Cloud Storage bucket using the gcloud CLI tool.
Here’s the command I use:
gcloud storage cp gs://my-bucket/large-file.tar.gz ./
The file is ...
-1
votes
1
answer
96
views
NODE_ENV in Google App Engine in TypeScript apps (React)
How does GAE (Google App Engine) treat NODE_ENV on deployment and run with a NodeJS runtime?
Google docs clearly states that some variables are automatically set and cannot overridden except the `...
1
vote
2
answers
767
views
Cloud SQL Proxy SSL error: `certificate had CN "", expected "<project>:<region>:<instance>"` when connecting to PostgreSQL 14
We're encountering an issue with Cloud SQL Proxy (v1 and v2) when connecting to a newly created PostgreSQL 14 Cloud SQL instance via a Kubernetes deployment on GKE.
The error we see in the logs is:
...
-1
votes
1
answer
124
views
gcloud CLI: Permission denied moving project between organizations
I’m trying to move a Google Cloud project from our org (Org ID: ORG_ID_1) into the client’s org (Org ID: ORG_ID_2) with:
gcloud beta projects move PROJECT_ID --organization=ORG_ID_2
but I immediately ...
0
votes
2
answers
120
views
The --update-labels argument of gcloud functions deploy does absolutely nothing
Maybe this is a bug because it's supposed to work: https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--update-labels
This command completes without issue:
gcloud alpha functions deploy &...
0
votes
2
answers
135
views
Support to node crypto module is required - gcloud sql connector
Any idea on what can cause the following issue? We're trying to migrate to the official Cloud SQL Node.js Connector but for some reason I'm getting the following issue when running a test connection ...
-1
votes
1
answer
175
views
Running Terraform against Google Cloud in GitLab
I am trying to run terraform from a Gitlab pipeline job against my Google Cloud instance. I have authenticated Gitlab to Google Cloud with Federated Id and can impersonate a service account connected ...
0
votes
1
answer
396
views
Cannot setup local development for dataform cli - dataform init-creds fails
I cannot setup my local development environment with Dataform CLI because the creation of the df-credentials.json fails.
I follow the steps described here: https://cloud.google.com/dataform/docs/use-...
0
votes
1
answer
114
views
How to deploy a gen2 Google Cloud function that triggers on Auth events (e.g. user.create)
Using gen1 it looks like this
gcloud functions deploy AuthUserCreate --runtime dotnet6 --no-gen2 --entry-point AuthUserHandler --trigger-event providers/firebase.auth/eventTypes/user.create
but a) ....
0
votes
2
answers
278
views
Can't use service account impersonation for invoking a cloud function with the gcloud cli
I have granted the "roles/cloudfunctions.invoker" role and even "roles/cloudfunctions.admin" to the service account but still get this error:
gcloud functions call <function> ...
1
vote
1
answer
309
views
Google cloud: run app locally as service account whilst still running gcloud commands as my user
I am developing a cloud run service on google cloud and want to run it locally for testing using the service account I have configured cloud run to run the service as. My user has permission to ...
-1
votes
1
answer
96
views
Docker image running in k8s which needs gcloud auth credentials
I need run a python app in docker container on k8s. This app needs to use gcloud stuff like gemini-2.0-flash, google_vertexai and
vertexai.init(project=os.environ.get("GOOGLE_CLOUD_PROJECT"),...
0
votes
0
answers
109
views
Use oAuth2 for Google Cloud on a Docker container
I'm working on a small personal project where I don't want to use Service Accounts. Is there any way to enable authentication using oauth2 to login into google services inside a docker container?
...
0
votes
1
answer
526
views
Google Cloud PubSub Emulator
I'm running into an issue when trying to use the Google Cloud Pub/Sub Emulator. I am able to start the emulator successfully, but I cannot create topics or interact with it using gcloud commands.
I ...
0
votes
0
answers
15
views
Firebase Firestore Export direct subcollections [duplicate]
In our Firestore two top level Collections (blueprints & copies) have the exact same structure of subcollection-names.
blueprints
plans
instructions
copies
plans
instructions
When we export - ...
0
votes
0
answers
90
views
Cannot Deploy API on GAE Standard: "failed to initialize analyzer" with gcr disabled
I am trying to deploy an API on Google App Engine (GAE) Standard Environment, but I keep encountering the following error:
ERROR: failed to initialize analyzer: validating registry read access: ensure ...
1
vote
2
answers
248
views
gcloud functions deploy with go runtime fails on downloading dependencies from non-public repositories
I'm not able to deploy a Golang-based Google Cloud Function by running gcloud functions deploy.
The reason in that my code imports packages from non-public GitHub repositories, and gcloud is not happy ...
2
votes
1
answer
246
views
How to get the latest key version in Google Cloud KMS?
Assuming you have a key name what is the best way to find the latest version of that key?
I had assumed:
masterKeyVersionIterator := client.ListCryptoKeyVersions(ctx, &kmspb....
1
vote
1
answer
126
views
gcloud command formatting - selecting values from a list
I'm trying to select some values, from the status of the cloud routers to show the bgp peerings, however while I can return the ASN number correctly, trying to get any other value from the same output ...
0
votes
0
answers
45
views
Why can't the Job Template confirguration JSON file be read when trying to make the template ID?
Sorry this is elementary. I have a JSON file saved both to my machine as well as in the google 'bucket'. I need to create 3 variants of the MPEG DASH and 3 variants of HLS playlists so I needed to ...
0
votes
1
answer
293
views
Google "gcloud functions deploy" command gives error gcloud crashed (TypeError): expected string or bytes-like object, got 'NoneType'
I am trying to create cloud functions using my existing scripts
I run commands as shown below to create a cloud function <my_function>
"gcloud functions deploy <my_function> --no-gen2 ...
0
votes
0
answers
73
views
ERROR: gcloud crashed (UnicodeDecodeError): 'utf-8' codec can't decode byte 0xa2 in position 37: invalid start byte
I was trying to deploy an application using the gcloud app deploy command, and it gave me this error: utf-8' codec can't decode byte 0xa2 in position 37: invalid start byte. I am not sure whats going ...
0
votes
0
answers
78
views
getting error gcloud not found in nodejs application
I am trying to execute the gcloud commands in node js and getting gcloud is not found. the image is deployed using cloud run.
gcloud auth activate-service-account --key-file=/src/keys.json
/bin/sh: ...
0
votes
0
answers
168
views
Artifact Registry Precondition check failed
I have an issue with Artifact Registry when want to redirect back it to Container registry.
gcloud artifacts settings disable-upgrade-redirection --project=xx
IAM roles are set roles/artifactregistry....