gcloud

Cross project management using service account

蓝咒 提交于 2019-11-26 16:06:31
问题 I need a service account that can access multiple projects, but I have not been able to find a way to do this at all. It seems that a service account is always bound to a project. Another option is to create a service account on the separate projects and then authenticate them using gcloud auth activate-service-account --key-file SOME_FILE.json , but the problem here is that it does not seem possible to automate the creation of service accounts. So the question is then: Is it possible to

Upload files to Firebase Storage using Node.js

旧时模样 提交于 2019-11-26 10:28:45
问题 I\'m trying to understand how to upload files in Firebase Storage, using Node.js. My first try was to use the Firebase library: \"use strict\"; var firebase = require(\'firebase\'); var config = { apiKey: \"AIz...kBY\", authDomain: \"em....firebaseapp.com\", databaseURL: \"https://em....firebaseio.com\", storageBucket: \"em....appspot.com\", messagingSenderId: \"95...6\" }; firebase.initializeApp(config); // Error: firebase.storage is undefined, so not a function var storageRef = firebase

Access google container registry without the gcloud client

纵饮孤独 提交于 2019-11-26 06:06:36
问题 I have a CoreOS docker host that I want to start running containers on, but when trying to use the docker command to fetch the image from the google container private registry (https://cloud.google.com/tools/container-registry/), I get a 403. I did some searching, but I\'m not sure how to attach authentication (or where to generate the user+pass bundle to use with the docker login command). Has anybody had any luck pulling from the google private containers? I can\'t install the gcloud

What is the relationship between Google's App Engine SDK and Cloud SDK?

孤街醉人 提交于 2019-11-26 05:38:46
问题 I\'m developing a Google App Engine application and I am encountering references to both an App Engine SDK and a Cloud SDK. How do these two SDKs relate to each other? There is definitely some overlap between the two. There is a dev_appserver.py and appcfg.py is both of them. I can run a development server using dev_appserver.py , and also with gcloud preview app run . Why are there two tools that do the same thing? Is one being deprecated in favor of the other? Is there a roadmap for merging