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. Acceptstrueorfalse.profile(optional) (or provide environment variableAWS_PROFILE)access_key_id(optional) (or provide environment variableAWS_ACCESS_KEY_ID)secret_access_key(optional) (or provide environment variableAWS_SECRET_ACCESS_KEY)session_token(optional) (or provide environment variableAWS_SESSION_TOKEN)region(optional) (or provide environment variableAWS_REGION)endpoint(optional) (or provide environment variableAWS_ENDPOINT)role_arn(optional) (or provide environment variableAWS_ROLE_ARN)anonymous(optional) Tells to access the bucket as anonymous (set totrue)encryption_algorithm(optional since v1.2.15) The server-side encryption algorithm to use. AcceptsAES256,aws:kmsoraws:kms:arn.encryption_kms_key(optional since v1.2.15) Ifencryption_algorithmisaws:kmsoraws: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?