【发布时间】:2019-01-29 13:29:47
【问题描述】:
当我在 Linux 机器中运行以下命令时出现异常。
我正在尝试将一个文本文件从 linux 机器复制到 Google Cloud Storage 存储桶。
我已经创建了一个服务帐号。
我遵循的步骤-
-
export GOOGLE_APPLICATION_CREDENTIALS=/home/test/shubham_test/xyz.json其中,xyz.json 是创建服务帐号时下载的密钥文件。 gsutil cp test.txt gs://my-bucket/
我遇到了以下异常。
ServiceException: 401 Anonymous caller does not have storage.objects.create access to my-bucket/test.txt.
【问题讨论】: