无法获取Google Cloud Storage存储桶的位置 [英] Failed to obtain the location of the Google Cloud Storage bucket

查看:212
本文介绍了无法获取Google Cloud Storage存储桶的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Java客户端将数据从S3传输到GCS,但出现此错误.

I am trying to transfer data from S3 to GCS by using a Java client but I got this error.

无法获取Google Cloud Storage(GCS)存储桶的位置 ___由于权限不足.请验证是否已授予必要的权限.

Failed to obtain the location of the Google Cloud Storage (GCS) bucket ___ due to insufficient permissions. Please verify that the necessary permissions have been granted.

我正在使用具有项目所有者"角色的服务帐户,该帐户应授予对所有项目资源的无限制访问权限.

I am using a service account with the Project Owner role, which should grant unlimited access to all project resources.

推荐答案

Google Transfer Service正在使用内部服务帐户来回移动数据.此帐户是自动创建的,请勿与您自己创建的服务帐户混淆.

Google Transfer Service is using an internal service account to move the data back and forth. This account is created automatically and should not be confused with the service accounts you create yourself.

您需要向该用户授予称为旧版存储区写入器"的权限.

You need to give this user a permission called "Legacy bucket writer".

这写在文档中,但是很容易遗漏:

This is written in the documentation, but it's VERY easy to miss:

https://cloud.google.com/storage-transfer/docs/配置访问

这篇关于无法获取Google Cloud Storage存储桶的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆