Documentation

Help for MailMigrata and the whole suite

Connect Google Cloud Storage with HMAC keys in FileMigrata

This article explains how to connect a Google Cloud Storage (GCS) bucket to FileMigrata, as a source or destination.

GCS is object storage. Google Drive is a file system and uses a different connector. This connector uses the S3 XML interoperability API with an HMAC key pair.


Limitations

  • Files in Google Drive (drive.google.com) need the Drive connector, not this one.
  • A service account JSON file cannot be used. This connector requires HMAC keys.
  • Requester-pays buckets need an extra header. If Verify reports a payment error, turn requester-pays off for the cutover or contact sales.
  • Google can disable an HMAC key without deleting the service account. This looks like a wrong password. Check the key status first.
  • Soft-deleted objects are not copied.
  • Nearline, Coldline, and Archive objects incur GCS retrieval charges. Restore or warm them first.

What is migrated

FileMigrata copies files and objects over the Amazon S3 API or a compatible dialect. It does not copy IMAP mail.

  • This store can be a source or a destination.
  • Jobs copy by default and leave the source in place. Move, which deletes the source after verification, is optional.
  • Only the current version of each file is copied. See Current files only.
  • Re-runs skip objects whose hash already matches.
  • Data streams through FileMigrata and is not stored. See We never store your files.

Prerequisites

  • A GCP project with the bucket.
  • An HMAC key for a service account, created under Cloud Storage > Settings > Interoperability. Do not use a user password.
  • storage.objects.list, get, and create permissions on the bucket for that service account.

Connection details

Setting Value
Protocol S3-compatible (XML interoperability API)
Authentication Service account HMAC keys
Endpoint https://storage.googleapis.com
Region The bucket location, or auto
Regions 54
Limits Per-project quotas

Steps

  1. In the Google Cloud console, create a service account for this job.
  2. Grant roles/storage.objectAdmin on the bucket, or a custom role with the same permissions.
  3. Under Cloud Storage > Settings > Interoperability, create an HMAC key for the service account.
  4. In FileMigrata, select Google Cloud Storage. Enter the HMAC access key and secret. Set the region to the bucket location or auto.
  5. Click Verify.

A successful Verify means FileMigrata could list the store. It does not mean a multi-terabyte migration will finish by a given date. For a dated cutover, contact sales. Start with one mapping. If a job fails partway, resume it rather than starting a duplicate.


Choosing the root

Bucket names are global. Prefixes act as folders. Dual-region and turbo-replication buckets list as one bucket.


Troubleshooting

  • AccessDenied for an anonymous caller: The HMAC key was not sent. You used the Amazon S3 connector with an AWS endpoint. Use the GCS connector and storage.googleapis.com.
  • HttpError 400 location constraint: The bucket location and region field disagree. Enter the correct location or auto.

Related articles