All Questions
Tagged with shell google-cloud-platform
96
questions
1
vote
1
answer
49
views
How to write a REGEXP_EXTRACT expression in Google Cloud Logging config json?
I am trying to extract the value at the end of this log:
Chat request completed in 3.818780105999849
This is a log saved in Google Cloud Logging and the message is written in the textPayload field. I ...
0
votes
0
answers
37
views
Where to output a bash script that tracks changes in a folder
My use case:
I have Terraform code that spins up a GCP VM.
Within the Terraform code, there is a startup script that creates a user and adds a password, and does several other bits, like changing the ...
0
votes
1
answer
38
views
Google Cloud Shell JSON (error 400) problem when making Cloud Vision API connection
I am trying to locate objects in a given picture (base64) by using Google Cloud Vision API as a newbie. I am using Google Cloud shell environment for this purpose and keeping all the files (image file ...
0
votes
0
answers
36
views
BQ Loader - Multiple Service Account
I need a support to understand how I can use the following command:
bq show
bq load
in my shell script using 2 different service account dynamically.
At the moment I didn't find any solution and I ...
0
votes
2
answers
172
views
How can a billing project be stated in Google's command line tool `gsutil cp` on Linux?
I have to use Google's gsutil to download data from a project with "Requester pays" enabled. This does not seem to be possible.
Two different options are suggested on the internet for this ...
0
votes
1
answer
128
views
Goolge GCP gsutil commands counterpart for gcloud ones
Some google cloud shell commands related to gsutil (cloud storage) have counterpart for gcloud ones e.g.
gsutil mb gs://BUCKET_NAME
goes to
cloud storage buckets create gs://BUCKET_NAME
Is this ...
0
votes
2
answers
607
views
How to wait for a task to complete before executing next task for a Cloud Run Job?
I'm building an execution flow for running certain tasks as a Cloud Run Job, first one should be completed before running the next.
I was trying to follow the given sample shell script code, but it ...
0
votes
0
answers
62
views
Sync Images from google server disk to Bucket
We are copying the images and documents from our local Ubuntu server to the Google bucket using the below command.
gsutil -m rsync -a public-read -R -C -f /media/data_disk/ITEM/ gs://dev-cdn-assets-...
1
vote
1
answer
90
views
Bash script to delete Google cloud storage bucket does not work on the list of buckets
I am running the following command in bash to list all google cloud stoarage buckets that matches a specific pattern and delete all of them except one that is created at last. When running the below ...
2
votes
1
answer
199
views
Is there any provision to execute GCP workflow template from point of failure?
I have multiple pig jobs in a GCP workflow template with dependencies as below:
export env=dev
export REGION=us-east4
gcloud dataproc workflow-templates create test1 --region=$REGION
gcloud dataproc ...
0
votes
1
answer
413
views
SSL: CERTIFICATE_VERIFY_FAILED certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129. Facing this issue for cloud shell
While installing Gloud shell
error screenshot
While installing Google Cloud Shell having issue respect to SSL certificate. it says -
certificate verify failed: self signed certificate in certificate ...
0
votes
0
answers
92
views
Pushing docker image to GCR from shell script doesn't work but works fine from terminal
I'm trying to push a Docker image to GCR from a shell script but I keep getting this error:
unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid ...
1
vote
0
answers
105
views
No module at PythonShell (Deployed Google Firebase node.js function running a python script, ModuleNotFoundError)
I have a Firebase functions project. This is my project setup:
The index.js script executes app.py through a PythonShell.
When running locally, the executed python script works just fine (Probably ...
0
votes
1
answer
65
views
How do I set the proxy-url for gcp cluster in shell?
I am trying to run this command in a shell file via a ruby project in gitlab pipeline.
kubectl config set clusters."$Cluster_config".insecure-skip-tls-verify true
kubectl config set clusters....
0
votes
0
answers
106
views
Permission to access projects instance with owner gmail on google cloud
when I want to run ./gcp.sh instance_up in google cloud shell says:
Creating a DNS zone myzone with suffix example.com for the network...
<
ERROR: (gcloud.dns.managed-zones.create) User
[...