ex-aws / ex_aws

A flexible, easy to use set of clients AWS APIs for Elixir

Home Page:https://hex.pm/packages/ex_aws

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compatibility with other providers?

mvkvc opened this issue · comments

Hello,

I would like to use this library to upload to Backblaze B2, which is an S3 compatible store with has an endpoint like s3.us-west-002.backblazeb2.com. Is this possible?

Thank you

Yep, in general you should just be able to set the host value in the config to override it to whatever the hostname you want is.

Thank you!

Hi. Thanks, indeed, just "host" and "client_id" and "client_secret" for B2.

config :ex_aws, :s3,
   host: "https://s3.eu-central-003.backblazeb2.com/<my-bucket>
   region: eu-central-003,
   ...

Hi. Thanks, indeed, just "host" and "client_id" and "client_secret" for B2.

config :ex_aws, :s3,
   host: "https://s3.eu-central-003.backblazeb2.com/<my-bucket>
   region: eu-central-003,
   ...

This will not work. When you specify the region like this in the config, you will get an error like

s3 not supported in region eu-central-003 for partition aws

Just do not specify the region.

See here: https://elixirforum.com/t/backblaze-and-ex-aws-ex-aws-s3-2-4-3-presign-url-issue/56805