View Source RemotePersistentTerm.Fetcher.S3 (RemotePersistentTerm v0.2.0)

A Fetcher implementation for AWS S3.

In order to use this Fetcher, you must add {Finch, name: AWS.Finch} to your supervision tree.

Even if you have many S3 fetchers, just one AWS.Finch instance is enough.

Link to this section Summary

Functions

Initialize an S3 Fetcher.

Link to this section Types

@type t() :: %RemotePersistentTerm.Fetcher.S3{
  bucket: String.t(),
  client: AWS.Client.t(),
  key: String.t()
}

Link to this section Functions

Initialize an S3 Fetcher.

Requires AWS credentials to be provided via env vars. The following vars must be set to the appropriate values:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_DEFAULT_REGION

Options:

  • :bucket (String.t/0) - Required. The s3 bucket in which the remote term is stored.

  • :key (String.t/0) - Required. The key within the s3 bucket which refers to the remote term.