我正在尝试使用 GCP Deployment Manager 创建存储桶。我已经完成了快速入门指南并能够创建一个compute.v1.instance
。但我正在尝试在 Google Cloud Storage 中创建一个存储桶,但无法获得除403 Forbidden
.
这就是我的模板文件的样子。
resources:
- type: storage.v1.bucket
name: test-bucket
properties:
project: my-project
name: test-bucket-name
这就是我所说的
gcloud deployment-manager deployments create deploy-test --config deploy.yml
这就是我收到的回复
Waiting for create operation-1474738357403-53d4447edfd79-eed73ce7-cabd72fd...failed.
ERROR: (gcloud.deployment-manager.deployments.create) Error in Operation operation-1474738357403-53d4447edfd79-eed73ce7-cabd72fd: <ErrorValue
errors: [<ErrorsValueListEntry
code: u'RESOURCE_ERROR'
location: u'deploy-test/test-bucket'
message: u'Unexpected response from resource of type storage.v1.bucket: 403 {"code":403,"errors":[{"domain":"global","message":"Forbidden","reason":"forbidden"}],"message":"Forbidden","statusMessage":"Forbidden","requestPath":"https://www.googleapis.com/storage/v1/b/test-bucket"}'>]>
我已经设置了凭据,甚至创建了一组帐户所有者凭据(可以访问所有内容),但我仍然收到此响应。
有什么想法或值得一看的好地方吗?这是我的配置还是我需要在请求中传递额外的凭据?
我有 AWS 背景,仍在摸索 GCP 的方法。
Thanks
Google Cloud Platform 上的存储桶必须是唯一的。
如果您尝试创建一个名称已被其他人(在另一个项目上)使用的存储桶,您将收到一条错误消息。我将通过使用另一个名称创建一个新存储桶来进行测试。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)