There is some way to use `aws-elixir` to do requests for MinIO?

Currently, I am using the library in the following way: AWS.Client.create(id, key, token, region), then I make requests to AWS using this client. However, I do not want to make requests directly to AWS locally. In this case, I want to have a local MinIO instance to test my app.

How can I configure (if possible) the aws-elixir to make requests to localhost:9000? If there is a way to do this using just configurations like config :aws, :endpoint, "localhost:9000", that would be amazing.

https://hexdocs.pm/aws/1.0.4/AWS.Client.html#module-additional-options

2 Likes

Thanks, but can I set this as a configuration or I need use the put_endpoint ? Like this:

config :aws, 
    endpoint: "localhost:9000"

I don’t think aws has much in regards to application config. It’s a generated library for the most part. You can do your own application env stuff if you need that.