google-cloud-sdk | Mirror of gcloud Google Cloud Platform SDK to track release changes | GCP library
kandi X-RAY | google-cloud-sdk Summary
kandi X-RAY | google-cloud-sdk Summary
Every release, this repo picks up the gcloud Linux SDK and adds the sources to this repository using the sync_gcloud_releases.sh script. The repo serves as a historical record of when code changes occurred to the SDK. New releases are added within a day of general availability.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Add command line arguments for GCE .
- Retrieves cluster configuration .
- Adds command line arguments to the given parser .
- Create a cluster node .
- Adds node autoprovisioning flags .
- Time series .
- Adds the command line arguments to the given parser .
- Adds the command line arguments to the given parser .
- Returns the full object metadata section of the resource .
- Adds flags to the given parser .
google-cloud-sdk Key Features
google-cloud-sdk Examples and Code Snippets
Community Discussions
Trending Discussions on google-cloud-sdk
QUESTION
trying to follow the Getting Started instructions for Deploying a Cloud Run service with Cloud Code in Intellij (deploying HelloWorld Flask app container with Cloud Run: Deploy
) but getting the following error, any idea why this might be happening
it worked initially i.e. deployed the app on Cloud Run service using the same steps, and then started throwing this error after a week or so when trying to redeploy, there was no change in project settings.
intellij and docker versions are the latest.
authenticated to google cloud project with gcloud auth login --update-adc
The local run works fine (Cloud Run: Run Locally
),
but running the Cloud Run: Deploy
throws this "code 89" error
ANSWER
Answered 2022-Mar-15 at 20:00ok, i still don't know why it fails to deploy to cloud run from intellij but i got it to deploy from command line
QUESTION
I have created an Azure pipeline that should auth with a GCP service account and do the maven test step. In the test I have a BigQuery client directly connecting to the BigQuery datasets, querying it and doing some assertions, that's why I need the credentials.
It is all working fine on my local machine, where I have pointe GOOGLE_APPLICATION_CREDENTIALS
to the .json
containing the service account key.
Even in the pipeline, everything works fine with the key (I've checked it on some terraform steps and they are picking up the credentials provided in such a way), except the maven command.
Below is the code I'm using:
Azure pipeline:
...ANSWER
Answered 2022-Mar-11 at 09:01The issue was that the credentials json file wasn't present in the maven working directory, meaning the maven working directory and other steps working directory wasn't the same.
The issue was fixed by copying the credentials json file to the maven working directory.
QUESTION
To preface I'm fairly new to Docker, Airflow & Stackoverflow.
I've got an instance of Airflow running in Docker on an Ubuntu (20.04.3) VM.
I'm trying to get Openpyxl installed on build in order to use it as the engine for pd.read_excel
.
Here's the Dockerfile with the install command:
...ANSWER
Answered 2022-Mar-03 at 15:56We've had some problems with Airflow in Docker so we're trying to move away from it at the moment.
Some suggestions:
- Set the version of openpyxl to a specific version in requirements.txt
- Add openpyxl twice to requirements.txt
- Create a
requirements.in
file with your main components, and create arequirements.txt
off that using pip-compile. This will add subcomponents too - Try specifying a python version as well
Hopefully one of these steps will help.
QUESTION
I'm currently trying to build a python 3.10 application using VSCode and want to deploy the application to Cloud Run soon. Google conveniently has a Cloud Code plugin that is supposed to help with debugging and deployment of my code, but I'm having huge issues getting those tools to work. I'm on an M1 Mac, and I'm running into the following issues with starting the "Debug on Cloud Emulator" command in VSCode.
Logs from "Cloud Run: Run / Debug Locally"
...ANSWER
Answered 2022-Mar-08 at 16:12Remove the exec
from the CMD exec
: this unfortunately throws off skaffold debug
. Normally the Detailed channel will include some logs to indicate this, like:
QUESTION
I am having problems in the authentication of an account in Google Cloud. I had an account (test_account@gmail.com) which I used to make different tests with Google Storage. Now that I learnt, I want to do different things with another account (new_account@gmail.com).
I changed the active account with gcloud config set account `new_account@gmail.com`
and I removed the old account with gcloud auth revoke test_account@gmail.com
. When I check the active accounts I get:
ANSWER
Answered 2022-Feb-21 at 09:32Have you specified a separate credential file in your code or are you using the default application credentials provided by the Cloud SDK? If the later it is possible that your old account is still used as a default in the file ~/.config/gcloud/application_default_credentials.json
.
You can change this with the following command:
QUESTION
I am a Mac user on osx 10.15.7 (Catalina). I recently updated brew and upgraded formulas with it. Since then, my terminal has become erratic and prints out these errors:
...ANSWER
Answered 2022-Jan-31 at 22:17prezto: old shell detected, minimum required: 4.3.17
Check your zsh version
QUESTION
gcloud auth login not coming back to terminal on macos:
ERROR: gcloud crashed (ConnectionError):
HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by NewConnectionError(':
Failed to establish a new connection: [Errno 60] Operation timed out'))
gcloud auth login working fine on my other PC windows bash terminal with same Wifi.
Given read & write permissions to everyone of folder google-cloud-sdk
...ANSWER
Answered 2022-Feb-14 at 01:44The problem is with your ISP, Airtel India. Use a VPN, and it work.
QUESTION
When I try and use any gsutil command on my google cloud instance, I get the following error:
...ANSWER
Answered 2022-Feb-09 at 09:27This looks like you've installed a pre-release version of the package which doesn't have the snap/google-cloud-sdk/217/platform/gsutil/VERSION
file (it doesn't have the snap/google-cloud-sdk/217/platform/
folder at all) which the gsutil
seems to need.
This is still a problem on the the current edge release of 370:
(gsutil) Unable to read file [/snap/google-cloud-sdk/221/platform/gsutil/VERSION]: [Errno 2] No such file or directory: '/snap/google-cloud-sdk/221/platform/gsutil/VERSION'
Removing the package with
sudo snap remove google-cloud-sdk
and installing the stable version with
sudo snap install google-cloud-sdk --classic
fixed this error for me.
QUESTION
With the upgrade to Google Cloud SDK 360.0.0-0 i started seeing the following error when running the dev_appserver.py
command for my Python 2.7 App Engine project.
ANSWER
Answered 2022-Feb-08 at 08:52This issue seems to have been resolved with Google Cloud SDK version 371
On my debian based system i fixed it by downgrading the app-engine-python
component to the previous version
QUESTION
Currently trying to authenticate the Linux machine in a bitbucket pipeline to run this code within a test that allows it to move a file from a GCS bucket to itself.
...ANSWER
Answered 2022-Jan-13 at 03:56The command gcloud auth activate-service-account does not set up ADC (Application Default Credentials) for the python program.
Write the contents of the service account to a file and set the environment variable GOOGLE_APPLICATION_CREDENTIALS to point to the file.
Another option is write the contents to a known location and then specify that location when creating the client:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install google-cloud-sdk
You can use google-cloud-sdk like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page