There is an instance running on GCE and there is a GCS bucket in same project. But I am not able to write data to it. How can I write data from a VM instance to the storage bucket?
相关问题
- Cannot upload large file to Google Cloud Storage
- Authenticating to Google Cloud Endpoints as iOS ap
- Google Cloud Storage requests are slow using Paper
- Mounting a gcePersistentDisk kubernetes volume is
- compute engine use gsutil to download tgz file has
相关文章
- How do I create a persistent volume claim with Rea
- Google Storage access based on IP Address
- gsutil / gcloud storage file listing sorted date d
- Need help understanding the Firebase Storage CDN
- How to upload an image from web into Google Cloud
- Batch Request - SendAs Emails
- Can you get a static external IP address for Googl
- Using cloud function to load data into Big Query T
There is pending improvement:
Google Cloud Platform Ability to change API access scopes
but no due date stated yet. Stay tuned.
Update: as of 15 Dec 2016, the feature
setServiceAccount
is now in beta:The documentation provides instructions for how to use this feature using the Google Cloud Console,
gcloud
CLI tool, as well as API. Here's an example usinggcloud
; see the docs for more info.Previous answer (valid prior to 15 Dec 2016):
You can't change the scopes of a running VM instance. You can either:
create a new instance (possibly reusing the disks of your current instance) with the right scopes specified at creation time, e.g.:
if you want to use
gsutil
manually from inside the VM, you can rungsutil config
inside the VM and authenticate by following its promptsif you are planning to use an automated tool using Google APIs, use a service account