google-cloud-platform - Scheduling a Cloud DataStore Export in Google Cloud Platform
问题描述
I have followed this tutorial step by step https://cloud.google.com/datastore/docs/schedule-export but I have a problem when I want to assign the Storage Admin role on my bucket with the gsutil command-line tool
gsutil iam ch serviceAccount:YOUR_PROJECT_ID@appspot.gserviceaccount.com:storage.admin \
gs://BUCKET_NAME
I have this error:
BadRequestException: 400 Role roles/storage.storage.admin is not supported for this resource.
However, I can exporting and importing Entities with this commands
gcloud datastore export --namespaces="(default)" gs://${BUCKET}
gcloud datastore import gs://${BUCKET}/[PATH]/[FILE].overall_export_metadata
解决方案
将评论转换为答案...
错误消息包含重复storage
项:roles/storage.storage.admin
。
改为调用以下命令(不带.storage
字符串)似乎正在工作:
gsutil iam ch serviceAccount:YOUR_PROJECT_ID@appspot.gserviceaccount.com:admin gs://BUCKET_NAME
推荐阅读
- multithreading - 延迟初始化和可变静态借用 [Rust]
- git - 在 git diff 中,我可以只显示没有添加的删除吗?
- ruby - 为什么/如何`gem fetch -s $source`与Bundler的`source`语句不同?
- ssl - twilio 为有效的 ssl 证书提供错误
- npm - Npm 工作区:用于开发和发布的不同“主要”属性?
- github - 如何在 github CI/CD 管道中制作工作 dotnet-lambda 工具?
- mysql - 如何在分组前预过滤日期
- c++ - 如何在反应中运行 qtwebsocket webassembly?
- c# - 使用 ProcessStartInfo 时如何将命令写入 cmd.exe
- c# - 如何获得测试用例 testcleanup 失败的测试结果