Giter Site home page Giter Site logo

Comments (8)

martgnz avatar martgnz commented on July 19, 2024 5

This is not addressed on the README, but if you look at the code there's an option to set the AWS region as --bucket_region=YOUR_REGION.

In my case setting it to my region, eu-west-1, solved the issue:

./s3-parallel-put --bucket=MY_BUCKET \
   --put=stupid
   --dry-run --limit=1
   --bucket_region=eu-west-1
   --insecure
   .

from s3-parallel-put.

timdau avatar timdau commented on July 19, 2024 1

To use a non-default region you must specify both the --bucket_region and the --host, as follows:
s3-parallel-put --bucket=$BUCKET . --bucket_region=ca-central-1 --host=s3.ca-central-1.amazonaws.com

The S3 Endpoints can be found here https://docs.aws.amazon.com/general/latest/gr/s3.html

from s3-parallel-put.

IhorKirei avatar IhorKirei commented on July 19, 2024

Got same error.

from s3-parallel-put.

uslperera avatar uslperera commented on July 19, 2024

Is it fixed yet?

from s3-parallel-put.

mishudark avatar mishudark commented on July 19, 2024

no yet

from s3-parallel-put.

aaronflorey avatar aaronflorey commented on July 19, 2024

I found removing the following fixed it for me

calling_format = boto.s3.connection.OrdinaryCallingFormat(),

from s3-parallel-put.

nealalpert avatar nealalpert commented on July 19, 2024

commenting out calling_format = boto.s3.connection.OrdinaryCallingFormat(), seems to result in a 400 being returned for me. any word on a work around for this?

from s3-parallel-put.

nealalpert avatar nealalpert commented on July 19, 2024

After some investigation we narrowed down the issue to

connection = S3Connection(is_secure=options.secure, host=options.host)

The initial connection uses boto.s3.connect_to_region but the child processes do not.

Swapping this line for

connection = boto.s3.connect_to_region(options.bucket_region,
is_secure=options.secure,
)

seemed to fix our issue and allow us to upload to a region other than us-east-1.

from s3-parallel-put.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.