使用 Google Cloud Platform 部署管理器模板创建存储桶
Creating a bucket using Google Cloud Platform Deployment Manager Template
我正在尝试使用 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 云平台上的存储桶必须是唯一的。
如果您尝试创建一个名称已被其他人(在另一个项目中)使用的存储桶,您将收到一条错误消息。我会通过使用另一个名称创建一个新存储桶来进行测试。
我正在尝试使用 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 云平台上的存储桶必须是唯一的。 如果您尝试创建一个名称已被其他人(在另一个项目中)使用的存储桶,您将收到一条错误消息。我会通过使用另一个名称创建一个新存储桶来进行测试。