alanwilter
alanwilter

Reputation: 582

Using gsutil to rsync from GCP to S3

There's a similar question with answers here. However, the top answer there does not work for me:

If I use:

gsutil -m rsync -r gs://your-gcs-bucket s3://your-s3-bucket

It fails for me with:

The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'eu-west-2'

Ok, rclone does work but, still, why not with gsutil rync?

I'm in London region by the way.

Upvotes: 2

Views: 1625

Answers (1)

Kolban
Kolban

Reputation: 15246

Associated with the gsutil command is a configuration file called ~/.boto. Within this file one can add/code:

[Credentials]
s3_host=s3.eu-west-2.amazonaws.com

For details on this file and related information, please see:

config - Obtain credentials and create configuration file

Upvotes: 5

Related Questions