mcollina / heroku-buildpack-graphicsmagick

67 stars 77 forks source link

Support non-standard regions #13

Closed RobbinHabermehl closed 3 years ago

RobbinHabermehl commented 9 years ago

Currently only the US Standard S3 region is supported by this buildpack. When using another region, like "eu-west-1" for instance, both up- and downloading will fail as S3 throws the following error:

<?xml version="1.0" encoding="UTF-8"?>
  <Error>
    <Code>PermanentRedirect</Code>
    <Message>The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</Message>
    <Bucket>graphicsmagick</Bucket>
    <Endpoint>s3.amazonaws.com</Endpoint>
    <RequestId>F9C442F982F9CA37</RequestId>
    <HostId>h/LixJIW0IqNvcTlIb/Bfz1PJNLUfpgeCP9KMHG07GEolEFisZp2Ryf5NGzRWB8j</HostId>
</Error>

Which makes perfect sense considering the fact that the "s3" subdomain represents the US Standard region. This pull request allows you to specify this subdomain so this buildpack can be used for all S3 regions.