Cloud sync discovery of GCS bucket fails with "account.domain.com does not have storage.buckets.get access to the GCS bucket."
Applies to
- Cloud Sync
- GCP Cross project
Issue
- Cloud sync fails to Discover cross project GCS bucket with error ""databroker-agent@gcp1.iam.gserviceaccount.com does not have storage.buckets.get access to the Google Cloud Storage bucket."
- Data Broker logs :
[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"}}