Documentation

Migrata Systems help

Connect Google Cloud Storage with HMAC keys in FileMigrata

Your team keeps a data lake or an app bucket in Google Cloud Storage, and this guide starts from that bucket. It shows how to attach the store to FileMigrata for a migration job, because a bucket needs the right connector. GCS is object storage, whereas Google Drive is a filesystem, so a My Drive photo library needs the Drive connector. The connector below speaks the S3 XML interoperability API and signs with an HMAC key pair, not a password. Every listing call and every transfer call uses that AWS-compatible path, so FileMigrata treats the bucket as object storage.



What You’ll Learn

  • This page explains which access key, secret, region label, and API endpoint your Google Cloud project supplies for the job.
  • You also learn to create a limited service-account key rather than a root login, because root logins grant excessive access.
  • The walkthrough then connects the bucket inside FileMigrata and runs Verify, so you see a real listing first.
  • You pick the bucket or prefix that becomes the root, and that choice sets how much the connector touches.
  • FileMigrata copies current objects and leaves the originals in place, because a first run should never destroy the source.
  • The page closes with the usual errors for this vendor and a fix for each, because a failed Verify burns an afternoon.



What you need

You should gather every item below before you open FileMigrata, because a missing permission blocks the first listing.

  • Your GCP project must hold at least one bucket that you plan to use as the source or the destination.
  • You create an HMAC key for a service account under Cloud Storage → Settings → Interoperability, and you never reuse a user password.
  • You grant that service account storage.objects.list plus get and create permission on the bucket, because both actions are required.

FileMigrata talks to an API with the shape below, because that shape explains most connection errors later.

  • The protocol is s3-compatible, and the authentication type is service-account/hmac, which is why the XML interoperability API applies.
  • The API host is https://storage.googleapis.com, and FileMigrata sends every listing and transfer request to it.
  • Our dataset lists 54 regions for this vendor, and the region field accepts the label that matches your bucket.
  • The vendor limits cover XML interoperability, per-project quotas, and HMAC keys for S3 interoperability, so a project quota can cap a large job.



Connect Google Cloud Storage in FileMigrata

  1. In the Google Cloud console, you create a service account that exists only for this job.
  2. You grant roles/storage.objectAdmin on the one bucket, or you attach a custom role with the same permissions.
  3. Under Cloud Storage → Settings → Interoperability, you create an HMAC key for that service account, and you keep that key pair ready for the connection step.
  4. In FileMigrata you choose Google Cloud Storage, then enter the access key with its secret as the HMAC pair. You set the region to the bucket location or to auto.

A successful Verify means that FileMigrata listed that store, but it does not mean a multi-terabyte estate finishes on Sunday. For a dated cutover, your team should talk to sales so a person can plan the schedule with you.

The Run your first file migration guide covers copy versus move, resume, and checksums, because each choice shapes the job.



Pick the right root

GCS names every bucket globally, and prefixes inside a bucket behave like folders, so the root you choose sets the scope. Dual-region and turbo-replication buckets still list as one bucket, so replication settings do not change that root choice. Soft-deleted objects are not current objects, so FileMigrata leaves them out of a normal job.



What FileMigrata copies

FileMigrata copies files and objects over the Amazon S3 API or a compatible dialect, so the connector moves buckets rather than mailboxes. It does not copy IMAP mail at all, because mail migration runs through the mail connectors instead.

You can use this store as a source or as a destination, which lets one connector serve both sides. Default jobs copy and leave the source in place, because a first run that keeps the original is easy to retry. Move, which deletes after verify, is available but never the default, because deletion cannot be undone. FileMigrata takes the current version of each file, and Current files only explains that version rule. On a re-run, the service skips objects whose hash already matches, so a second pass moves no data twice. FileMigrata streams every transfer through instead of staging the bytes, so the service never keeps a second version of your files. The We never store your files page explains that guarantee in detail.



Google Cloud Storage-specific things to watch for

Drive storage is not GCS, so you should use the Drive connector whenever files live under drive.google.com. Requester-pays buckets need an extra header that some S3 clients forget, so a client that omits the header gets rejected. When Verify reports a payment refusal, you should turn requester-pays off for the cutover or talk to sales. Google can disable an HMAC key without deleting the service account, and that state looks exactly like a bad password. You should check the key status before you retype the secret, because the key may simply be off.



Common problems

The AccessDenied error with an anonymous caller means the HMAC key was never sent. You used the Amazon S3 connector with an AWS endpoint, so the call reached Google without that key. You should use the GCS connector and the storage.googleapis.com host, because that pair is the supported path.

The HttpError 400 location constraint failure means the bucket location and the region field disagree. You should match the real location in the form or try auto, whichever the console offers.



FAQ

Can you supply a service-account JSON file instead of an HMAC pair for this connector?

No, the S3-generic path wants HMAC credentials, and domain-wide Drive delegation belongs to a different connector entirely.

Does FileMigrata handle Nearline, Coldline, or Archive objects inside a bucket?

FileMigrata will GET every object, and you pay the GCS retrieval cost, so restore or warm the class first.



Related FileMigrata docs

When both sides are connected, you start with one mapping and then run your first file migration. If something fails halfway, you should resume the same job instead of starting a duplicate, because a second copy of the same data wastes time.