Migrate Amazon S3 to Google Cloud Storage (HMAC)
This article explains how to copy an Amazon S3 bucket or prefix into a Google Cloud Storage (GCS) bucket with FileMigrata. This is a move between two object stores.
GCS requires HMAC keys on a service account. The Google Drive connector, which uses a personal OAuth sign-in, does not work for GCS.
Limitations
- Glacier objects that have not been restored are not copied.
- S3 inventory reports are not copied unless you map that prefix.
- Requester-pays adds unexpected charges. Turn it off for the cutover, or contact sales.
- Nearline and Coldline retrieval charges apply after objects arrive in GCS.
What is migrated
- Current objects, with keys kept where possible
Prerequisites
- S3 credentials with list and get permission. See Connect Amazon S3.
- A GCS HMAC key, created under Interoperability in Cloud Storage settings. See Connect GCS.
- Requester-pays turned off on the bucket.
Mapping
- Map an S3 bucket or prefix to a GCS bucket or prefix.
- A dual-region GCS bucket counts as one destination. Create one mapping for it.
Steps
- Connect S3.
- Connect GCS with the HMAC key, not Drive.
- Start with one mapping.
- Copy the current objects.
Troubleshooting
- AccessDenied Anonymous caller: HMAC keys were not used. Create interoperability keys and use the endpoint
storage.googleapis.com. - Location constraint: The GCS bucket location does not match the region field. Match the location or choose auto.
- No buckets listed: A Drive OAuth token was used in the GCS form. Use an HMAC key.
- Network dropped: Resume the same job.
If you need files in Google Drive rather than GCS, see Google Drive to S3, which covers the reverse direction.