Links

Cloudflare R2

Connect & Ingest data from / into a Cloudflare R2 Bucket

Sling CLI Setup

The following credentials keys are accepted:
  • bucket (required) -> The name of the Bucket
  • access_key_id (required) -> The Access Key ID to access the bucket
  • secret_access_key (required) -> The Secret Key to access the bucket
  • endpoint (required) -> endpoint hostname for (e.g. a345678c73f3e8bddd084cb125876543.r2.cloudflarestorage.com)
Here is an example of setting a connection named R2_BUCKET. We must provide the type=s3 property:
$ sling conns set R2_BUCKET type=s3 bucket=sling-bucket access_key_id=ACCESS_KEY_ID secret_access_key="SECRET_ACCESS_KEY" endpoint=<endpoint>

Environment Variable

export WASABI='{type=s3, bucket=sling-bucket, access_key_id=ACCESS_KEY_ID, secret_access_key="SECRET_ACCESS_KEY", endpoint=<endpoint>}'

Sling Cloud Setup

  1. 1.
    In Sling, click the Connections link on the left sidebar.
  2. 2.
    On top, click New Connection.
  3. 3.
    Find S3 in the list and click on it.
  4. 4.
    Input the needed information. Make sure the Endpoint is properly filled in.
  5. 5.
    Click Test to verify connectivity.
  6. 6.
    Click Save to save the connection.
If you are facing issues connecting, please reach out to us at [email protected].