For the complete documentation index, see llms.txt. This page is also available as Markdown.

AWS S3

Connect & Ingest data from / into a AWS S3 Bucket

Setup

The following credentials keys are accepted:

  • bucket (required)

  • use_environment (optional) -> whether to use the AWS environment variables to access. Accepts true or false.

  • profile (optional) (or provide environment variable AWS_PROFILE)

  • access_key_id (optional) (or provide environment variable AWS_ACCESS_KEY_ID)

  • secret_access_key (optional) (or provide environment variable AWS_SECRET_ACCESS_KEY)

  • session_token (optional) (or provide environment variable AWS_SESSION_TOKEN)

  • region (optional) (or provide environment variable AWS_REGION)

  • endpoint (optional) (or provide environment variable AWS_ENDPOINT)

  • role_arn (optional) (or provide environment variable AWS_ROLE_ARN)

  • anonymous (optional) Tells to access the bucket as anonymous (set to true)

  • encryption_algorithm (optional since v1.2.15) The server-side encryption algorithm to use. Accepts AES256, aws:kms or aws:kms:arn.

  • encryption_kms_key (optional since v1.2.15) If encryption_algorithm is aws:kms or aws:kms:arn, this is the KMS key ID or ARN to use for encryption.

  • http_timeout (optional) A deadline for the whole S3 request, including the time to read the object body. Accepts Go duration format (e.g., 30s, 5m, 10m30s). Not set by default, so large objects can stream for as long as they need. Set this only to make stuck requests fail sooner. Do not set it to correct timeout errors on large files: the deadline includes the body read, so a transfer that takes longer than the value is cut off part-way.

Using sling conns

Here are examples of setting a connection named AWS_S3. We must provide the type=s3 property:

Environment Variable

See here to learn more about the .env.sling file.

In JSON/YAML format:

Sling Env File YAML

See here to learn more about the sling env.yaml file.

If you are facing issues connecting, give sling assist a try, or reach out to us at support@slingdata.io, on discord or open a Github Issue here.

Last updated

Was this helpful?