SferaDoc.Pdf.ObjectStore.S3 (sfera_doc v0.1.0)

Copy Markdown View Source

Amazon S3 (or S3-compatible) PDF object storage.

Requires the optional dependencies :ex_aws, :ex_aws_s3, and :sweet_xml.

Configuration

config :sfera_doc, :pdf_object_store,
  adapter: SferaDoc.Pdf.ObjectStore.S3,
  bucket: "my-pdfs",
  prefix: "sfera_doc/",   # optional, default ""
  ex_aws: []              # optional ExAws.request/2 opts (e.g. region)

ExAws credentials and region are read from the standard ExAws configuration (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION, etc.).

Object key format

{prefix}{name}/{version}/{assigns_hash}.pdf