View Source IVCU.Storage.S3 (IVCU S3 Storage v0.1.1)
Provides a helper to genenrate a storage that saves all the files to S3.
usage
Usage
First you need to define a configurable module for your storage.
defmodule MyApp.S3Storage do
use IVCU.Storage.S3, otp_app: :my_app
end
Then you need to proceed to configuration part.
config :my_app, MyApp.S3Storage,
access_key_id: "<access_key_id>",
secret_access_key: "<secret_access_key>",
bucket: "my-bucket",
region: "eu-central-1",
# Optional:
host: "amazon.com",
scheme: "https://"
Now you can use your storage module in your definition.