使用Google Cloud Platform Deployment Manager模板创建存储桶

斯图

我正在尝试使用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方面找到自己的出路。

谢谢

Fematich

Google Cloud Platform上的存储桶必须唯一。如果您尝试使用其他人(在另一个项目上)已经使用过的名称创建存储桶,则会收到错误消息。我将通过使用其他名称创建新存储桶进行测试。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在Golang中使用Google Cloud Platform中的存储桶

我的Google Cloud Platform存储中存储了未知存储桶

在Google Cloud Platform中创建实例模板

无法在 Google Cloud Platform 的存储桶中公开对象

通过Google Cloud Deployment Manager创建的Google数据流

如何使用Deployment Manager将文件写入Google Cloud Storage?

Google Deployment Manager Cloud Scheduler类型

在创建后标记 Google Cloud Platform 部署

通过 Cloud Functions 创建 Google Cloud Platform 预算

在Google Cloud Platform存储桶上托管静态网站时的DNS

在Python中的Google Cloud Platform存储桶中遍历目录树

将Google Cloud Platform Log Sink设置到存储桶中的特定文件夹

是否可以将Google Cloud Platform中VM的内容备份到特定存储桶?

Google Cloud Deployment Manager无法使用权限被拒绝的“ logging.v2.sink”创建部署

使用 Google Cloud Platform Buckets 的凭据无效

使用Java挂起Google Cloud Platform实例

使用 Python 的 Google Cloud Platform SDK

如何使用Google Cloud Deployment Manager部署防火墙资源时解决ResourceErrorCode:400

如何创建在 Google Cloud Platform 中创建的 MongoDB 用户?

如何从Google Cloud Platform存储下载文件

Google Cloud Messaging VS Google Cloud Platform

在Google Cloud Platform中创建HTTP负载均衡器

无法在Google Cloud Platform中创建Jupyter Notebook实例

在Google Cloud Platform上创建自动磁盘快照(备份)保留

Google Cloud Platform:如何重命名Google Cloud Platform项目?

Google Cloud Platform文件位置

Google Cloud Platform个人帐单

Google Cloud Platform数据显示

Google Cloud Platform修复SSH