Cloud Sync による GCS バケットの検出が、「 xx@gcpxxx.iam.gserviceaccount.com に storagバケット がありません。 GCS バケットへのアクセスを取得します」というエラーで失敗します。
環境
- Cloud Sync
- GCP Cross プロジェクト
問題
- Cloud Sync がプロジェクト間の GCS バケットの検出に失敗mailto:databroker-agent@gcp1.iam.gserviceaccount.com しました。エラー「 databroker-agent@gcp1.iam.gserviceaccount.com に storage.bucket.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"}}