Cloudflare R2

Supports:

  • ✅ Models
  • ✅ Model sync destination
  • ✅ Bulk sync source
  • ✅ Bulk sync destination

Connection

Configuration

NAMETYPEDESCRIPTIONREQUIREDREADONLY
account_idstringtruefalse
aws_access_key_idstringAccess Key ID with read/write access to a bucket.truefalse
aws_secret_access_keystringtruefalse
bucket_namestringBucket name (folder optional); ex: polytomic/datasettruefalse
is_single_tablebooleanTreat the files as a single table.falsefalse
is_directory_snapshotbooleanfalsefalse
directory_glob_patternstringfalsefalse
single_table_namestringfalsefalse
single_table_file_formatstringAccepted Values: csv, json, parquetfalsefalse
skip_linesintegerSkip first N lines of each CSV file.falsefalse

Example

1{
2 "name": "Cloudflare R2 connection",
3 "type": "cloudflare_r2",
4 "configuration": {
5 "account_id": "",
6 "aws_access_key_id": "AKIAIOSFODNN7EXAMPLE",
7 "aws_secret_access_key": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
8 "bucket_name": "polytomic/dataset",
9 "directory_glob_pattern": "",
10 "is_directory_snapshot": false,
11 "is_single_table": false,
12 "single_table_file_format": "csv",
13 "single_table_name": "collection",
14 "skip_lines": 0
15 }
16}

Model Sync

Source

Configuration

NAMETYPEDESCRIPTIONREQUIREDREADONLY
model_fromstringThe model is generated from a single file or a multi-file archive. Accepted values: single_file, multi_file_archivetruefalse
file_formatstringFile format Accepted values: csv, json, parquetfalsefalse
skip_linesintegerSkip first N lines of each CSV file.falsefalse
keystringThe key of the object in the bucket to read from.falsefalse
subfolderstringSubfolder to read files from from (optional)falsefalse

Example

1{
2 ...
3 "configuration": {
4 "file_format": "",
5 "key": "",
6 "model_from": "",
7 "skip_lines": 0,
8 "subfolder": ""
9 }
10}

Target

Cloudflare R2 connections may be used as the destination in a model sync.

All targets

Configuration
NAMETYPEDESCRIPTIONREQUIREDREADONLY
formatstringOutput file encodingfalsefalse
Example
1{
2 ...
3 "target": {
4 "configuration": {
5 "format": "csv"
6 }
7 }
8}

Bulk Sync

Destination

Configuration

NAMETYPEDESCRIPTIONREQUIREDREADONLY
subfolderstringSubfolder to write to (optional)falsefalse
formatstringOutput file encodingfalsefalse

Example

1{
2 ...
3 "destination_configuration": {
4 "format": "csv",
5 "subfolder": "reports"
6 }
7}