在Google Cloud VM实例上启用存储权限 [英] Enable storage permission on Google Cloud VM instance

查看:408
本文介绍了在Google Cloud VM实例上启用存储权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Google Cloud VM实例,但是我在创建它时忽略了将存储权限设置为读写。



现在,希望试用云存储,但我的实例是只读的。



这怎么改变?我知道放松存储桶政策可能是可能的,但我更希望我的实例可以访问所有未来的项目桶。



我认为有一个选项在gcloud中更改devstorage参数?

解决方案

不幸的是,您无法更改虚拟机的范围。您必须创建一个新的才能更改它们。



当您创建新磁盘时,您可以重新使用旧虚拟机的磁盘,如果这有助于避免这种痛苦。

I have a Google Cloud VM instance, but I overlooked setting the Storage permission to read-write when creating it.

Now further down the line, I'm looking to experiment with cloud storage, but my instance is read-only.

How can this be changed? I understand it may be possible by relaxing the storage buckets policy, but I'd prefer my instance had write access to all future project buckets.

I presume there is an option in gcloud to change the devstorage parameter?

解决方案

Unfortunately you can't change the scopes of the VM. You will have to create a new one to change them.

When you create a new one you can reuse the disk of the old VM, if that helps avoid the pain.

这篇关于在Google Cloud VM实例上启用存储权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆