Cloud Sync 发现 GCS 存储分段失败,并显示错误 "xx@gcpxxx.iam.gserviceaccount.com does not have storage.buckets.get access to the GCS bucket."
适用场景
- Cloud Sync
- GCP 交叉项目
问题描述
- Cloud Sync 无法发现跨项目 GCS 存储分段,并显示错误 ""databroker-agent@gcp1.iam.gserviceaccount.com does not have storage.buckets.get access to the Google Cloud Storage bucket."
- 数据代理日志:
[INFO] [MASTER] [0] [8913] SEND MESSAGE: {"message":{"step":"INITIALIZE","relationshipId":"xxxxxxxxxxxxxxxxxx","status
":"FAILED","reason":"databroker-agent@gcpxxx.iam.gserviceaccount.com does not have storage.buckets.get access to the Google Cloud Storage bucket.","source":{"gcp":{"path":"data/xxx/path/trailing_slash/","bucket":"gcs-bucket","tags":[]}},"target
":{"s3":{"bucket":"s3-bucket","tags":[],"provider":"s3","path":"test/","encryption":{"kms":{"keyId":"xxxxx-xxxx-xxxx-xxxx"}},"region":"ap-southeast-2"}}