David - Musings of an SRE

Using s3cmd with Non-US S3 Buckets

Note to self:

After installing s3cmd, and configuring it, if you’re getting “[Errno 32] Broken Pipe” errors when putting a file into your non-US S3 buckets, modify your ~/.s3cfg:

# in ~/.s3cfg
# modify host_base and host_bucket to the proper endpoints
host_base = s3-ap-southeast-1.amazonaws.com
host_bucket = %(bucket)s.s3-ap-southeast-1.amazonaws.com