我有一个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实例上启用存储权限
发布评论