Skip to main content

S3Fetcher

Amazon S3 fetcher (s3://).

Notesโ€‹

Fetches documents from Amazon S3 using references such as s3://my-bucket/path/to/object.txt.

Supports AWS default credentials, explicit access keys via credentials, and S3-compatible endpoints.

The fetcher is designed to support common S3-compatible object stores (for example MinIO, Ceph RGW, and Cloudflare R2) by combining endpoint, region, and forcePathStyle as needed by the target platform.

S3 has no real directories. Folder-like paths are derived from object key prefixes.

Examplesโ€‹

The following example uses AWS default credentials and region resolution.

class: S3Fetcher

The following example targets a MinIO endpoint.

class: S3Fetcher
endpoint: http://localhost:9000
forcePathStyle: true
credentials:
username: minioadmin
password: minioadmin

The following example targets a Ceph RGW endpoint.

class: S3Fetcher
endpoint: https://ceph.example.com
region: us-east-1
forcePathStyle: true
credentials:
username: access-key
password: secret-key

The following example targets a Cloudflare R2 endpoint.

class: S3Fetcher
endpoint: https://<account-id>.r2.cloudflarestorage.com
region: auto
credentials:
username: r2-access-key
password: r2-secret-key

Usageโ€‹

Full configuration skeleton, with every option and its default
class: S3Fetcher
credentials:
password: string
passwordKey:
size: 0
source: KEY
value: string
username: string
domain: string
endpoint: string
forcePathStyle: false
referenceFilters: []
region: string

Propertiesโ€‹

PropertyTypeRequiredDefault
credentialsCredentialsNoCredentials
domainstringNo-
endpointstringNo-
forcePathStylebooleanNofalse
referenceFiltersReferenceFilter[]No-
regionstringNo-

Property Detailsโ€‹

credentialsโ€‹

Optional AWS credentials for authentication.

  • Username: access key ID
  • Password: secret access key

If not set, the AWS SDK default credential provider chain is used.

domainโ€‹

The domain name for authentication when accessing the remote resource.

endpointโ€‹

Optional custom endpoint URL for S3-compatible services (for example MinIO).

forcePathStyleโ€‹

Whether path-style bucket addressing is used (endpoint/bucket/key) instead of virtual-hosted style (bucket.endpoint/key).

referenceFiltersโ€‹

Filters applied to document references (URLs or file paths) to control which ones are fetched. Documents whose references do not pass the filters are skipped.

regionโ€‹

AWS region where the bucket lives (for example us-east-1). If not set, the AWS SDK default region provider chain is used.