我正在尝试使用GCP部署管理器创建存储桶。我已经阅读了快速入门指南,并能够创建一个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方面找到自己的出路。
谢谢
Google Cloud Platform上的存储桶必须唯一。如果您尝试使用其他人(在另一个项目上)已经使用过的名称创建存储桶,则会收到错误消息。我将通过使用其他名称创建新存储桶进行测试。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句