Documentation
GuidesPipelines

Storage sources and destinations

Read pipeline inputs from S3, Google Cloud Storage, or SFTP, write Parquet or copied files to storage, and read delivery receipts.

This page describes the Blueprint settings that read pipeline inputs from S3, Google Cloud Storage, or SFTP. It also covers writing output to S3 or Google Cloud Storage, delivery receipts, and copying files without parsing them.

Before you begin

  • Create a connection for each source and destination, and apply its generated permissions before you run the pipeline. For more information, see Create and manage connections.
  • On each S3 or Google Cloud Storage connection, select Read only for inputs, Write only for outputs, or Read and write for both.
  • To change the Blueprint, you need the Maintainer or Admin role in the Project.

A passed connection test for a read and write storage connection, with passed listing, reading, writing, and test file cleanup checks.

Read from storage

For a storage source, use a thin integration binding to the saved connection. Give each Resource the following settings:

  • Path: The exact provider-relative path or glob. Include the full saved object prefix, and preserve Unicode, case, and spaces.
  • Format: A supported input format, such as CSV, JSONL, or Parquet. For PDFs, Office files, and other documents, see Load documents and embed text. To move files without parsing them, see Copy files as they are.

Pipelines reject prefixes or scoped paths that contain templates or that require path normalization. Keep input globs outside the dogsled-pipelines/ output folder so that a run doesn't read earlier output.

Write to storage

To bind a storage destination, add a pipeline-config fragment that names the saved connection:

yaml
type: pipeline_config destinations: archive: type: dogsled_managed dogsled_connection_ref: saved-storage-connection

In the extract pipeline, use archive as the destination handle. Bobsled AI uses the connection's saved bucket, prefix, and identity. Replace saved-storage-connection with the name of your saved connection.

Where the files land depends on the destination and the Resource:

Destination or Resource
Bobsled AI writes
On retry
Any storage destinationParquet under <saved-prefix>dogsled-pipelines/, with a separate folder for each task attemptWrites to a different folder and preserves earlier output
A copy ResourceThe source files unchanged, not ParquetWrites the same paths again
A Partner's landing connectionParquet under <saved-prefix><table>/data/<delivery>/See Missing receipts and repeated deliveries

Run logs contain the published object URIs.

One task can send only as many tables to a landing connection as one credential covers. Publish tells you how many fit. If the task sends more, split it.

Storage output follows these rules:

  • Failed attempts can leave partial files. Only successful tasks advance their durable cursors.
  • Storage outputs don't merge rows. A full refresh writes another batch without deleting earlier files.
  • Consumers must select the successful batches that they need and apply each one by its mode. For row-level merge behavior, use a warehouse destination.

Use several storage connections

S3 sources and destinations can use separate saved connections, IAM roles, and AWS regions. Each destination in a fan-out receives its own connection's credentials. One task can use Google Cloud Storage and S3 together. One task can also read from a Google Cloud Storage connection and write to a Google Cloud Storage landing connection or share link. Bobsled AI gives each Google Cloud Storage connection its own short-lived token. The token works only in that connection's bucket and folder.

S3 role authentication, Google Cloud Storage workload identity, and Google Cloud Storage landing connections renew credentials during execution. Changing storage settings during a task stops credential renewal and invalidates the task's heartbeat.

Delivery receipts

Two Partner workflows create locked storage destinations:

  • Invite a partner creates an S3 landing connection for each Partner, and Send invite locks it. For more information, see Invite and manage Partners.
  • Share data creates a locked share link in your Project that sends files to a Partner. For more information, see Share data with a Partner.

When a task succeeds on a locked landing connection or a share link, Bobsled AI records the success. Immediately after, it writes one receipt for each table that the task delivers, at the following path:

text
<saved-prefix><table>/metadata/deliveries/<delivery>.json

A delivery is complete only when its receipt exists. Locked landing connections and share links on S3 and Google Cloud Storage write receipts. Other storage destinations don't. To read a Partner's delivered files, see Read the delivered files.

Receipt fields

A receipt has version, table, pipeline, runId, taskId, attemptId, finishedAt, format, folder, rows, schema, and mode. A Parquet receipt is version 3. The following fields need care when you read a receipt:

Field
Holds
formatparquet, or files for a copy. Filter on it before you read folder or rows.
rowsThe extracted row count, or null when Bobsled AI couldn't count it. A copy receipt always has null.
folderThe folder with the delivery's Parquet files, counted from the saved prefix. A copy receipt names the table's data/ folder instead.
modeHow to apply the delivery. For more information, see How to apply a delivery.
keysOnly in a merge receipt: the columns that identify a row.
files, bytesOnly in a copy receipt: the number of files and bytes.

How to apply a delivery

Each mode tells the consumer what the delivery holds:

mode
The delivery holds
Apply it by
snapshotThe whole table as of this runReplacing the earlier rows
appendOnly rows that no earlier delivery sentAdding the rows
mergeNew and changed rows, one version of each keyUpdating rows by the columns in keys, then adding the rest

Bobsled AI sets mode from how the Resource reads its source in the version that ran. A stream gives snapshot only when Bobsled AI can see that the read is complete or the Resource says so:

The Resource reads its source with
mode
A table or files with replication.method: full_refreshsnapshot
An API Resource with incremental.strategy: full_refresh or its own load_strategy: full_refreshsnapshot
An API Resource with no incremental blockappend, because Bobsled AI can't tell whether the endpoint returns every record
incremental_appendappend
Any other cursor read, with a primary keymerge
Any other cursor read, without a primary keyappend
A full-refresh run, for tables and filessnapshot, because the run reads them whole
A full-refresh run, for an API ResourceThe Resource's own mode, because a filtered read restarts at its lookback window
Its own load strategy of merge or appendThat strategy

Missing receipts and repeated deliveries

If Bobsled AI can't write a receipt, schema file, or notes file, the task still succeeded. Recovery depends on the destination:

Destination
Recovery
Partner landingBackground checks retry those writes for tasks that finished in the last 7 days. They don't rebuild a copy's receipt, because only the run that copied the files counted them.
Share linkBackground checks don't recover missing receipts or metadata. A later run creates a separate delivery and doesn't restore a missing share receipt.

A run can't write under metadata/, and Bobsled AI never replaces a receipt. Two pipelines in a Project can't write the same table through one landing connection or share link.

A task can fail after it writes its files, for example when someone cancels the run at that moment. A later Parquet run then writes the same rows to another delivery folder. Only a delivery with a receipt counts.

Delivery markers on other locked S3 connections

A run on a locked S3 connection that isn't a Partner link writes _dogsled-delivery.json in its attempt's folder under dogsled-pipelines/. The marker version depends on the run:

  • Version 2: The run doesn't copy files.
  • Version 3: The run copies files. Each stream names its own format, parquet or files. A files stream has rows set to null, plus files, bytes, and path. path names the folder that holds the stream's files, relative to the connection's folder, such as statements/.

Read from an SFTP server

An SFTP connection can supply extract inputs. It can't receive output files. Use a thin integration binding to the saved connection with dogsled_source_kind: sftp.

Set each Resource's source.path to one of the following:

source.path
Reads
Example
A folderEvery file in that folder and its subfoldersoutbound/
One fileThat fileoutbound/orders.csv
A patternEvery matching fileoutbound/**/*.csv

Keep each Resource's files in one format. Choose replication by how files arrive:

  • The folder only gains new files: Use incremental_append with the last_modified cursor.
  • The vendor replaces files in place: Use a full refresh.

Pipelines support password and key sign-in. For a complete example, see Connect an SFTP server.

Copy files as they are

A copy Resource moves files from S3, Google Cloud Storage, or SFTP to a storage destination unchanged. It writes each file byte for byte. It parses nothing and writes no Parquet.

Use a copy in the following cases:

  • The files aren't CSV, JSONL, or Parquet, such as PDFs and images.
  • You want to move the files themselves, not their rows.

CSV, JSONL, and Parquet files keep the table path unless you ask for a copy. Never use a copy for a warehouse or API source.

Define a copy Resource

To define a copy Resource, set source.kind to copy and give the source.path. Leave out format and output. Replication is always incremental_append on last_modified. Name the Resource after the folder that it copies, so that statements/ comes back as statements/.

The following Resource copies statement PDFs:

yaml
spec_version: "1" type: resource name: statements integration: storage description: Statement PDFs copied as they are. source: kind: copy path: "statements/**/*.pdf" replication: method: incremental_append cursor: field: last_modified

How a run selects files

Each run copies the files under path that it hasn't copied before. The selection depends on the source:

  • S3 and Google Cloud Storage: A run keeps the newest modified time that it copied. That time is the watermark. The next run takes each file modified at or after the watermark minus lookback_seconds, unless it already copied that version of the file. It skips a file with an older modified time.
  • SFTP: A run keeps a record of each file instead and has no lookback.

S3 dates an object from the start of its upload. If the watermark moves more than the lookback past that date before the upload ends, the run skips the file. Set lookback_seconds longer than your slowest upload.

Set copy limits

Set lookback_seconds under replication.cursor. The default is 3,600, which is 1 hour. To change the file size and file count that a run takes, set limits on the Resource. The following example sets a 4-hour lookback, a 1 GiB file size limit, and 2,000 files for each run:

yaml
replication: method: incremental_append cursor: field: last_modified lookback_seconds: 14400 limits: max_file_size_bytes: 1073741824 max_files_per_run: 2000

A copy run applies these limits:

  • File count: A run copies at most 10,000 files by default, oldest first. Later runs copy the rest.
  • File size: A file over the limit fails the run, and the error names the file. The default limit is 5 GiB. Raise limits.max_file_size_bytes, or move the file out of the copied folder.
  • S3 destinations: S3 takes at most 5 GiB in one write, so an S3 destination can't take a larger file.
  • Concurrency: A run copies up to 8 files at the same time, or one at a time from SFTP. It holds at most 1 GiB of those files on disk at a time. A larger file copies alone.

A copy pipeline sends to one destination. The same pipeline can also send other Resources to that destination. They keep the table path and write Parquet. For more information, see Limits.

Where copied files land

A copy makes no folder for each run. A file lands at the path that it has in the source. Both examples in the following table copy the source file statements/2026/11/c.pdf:

Destination
A file lands at
Example
A Partner's landing connection or a share link<saved-prefix><Resource>/data/<path under the copied folder>vendors/acme/in/statements/data/2026/11/c.pdf
Any other storage destination<saved-prefix><Resource>/<path under the copied folder>statements/2026/11/c.pdf

A landing connection's saved prefix is the Partner's folder with in/ added. A share link's saved prefix is the Partner's folder with out/ added.

The copied folder is the part of path before the first wildcard. In the example, it's statements/. To copy a whole folder from S3 or Google Cloud Storage, end the path with **, as in statements/**.

A copy keeps each file's bytes, name, and subfolders under the copied folder. It doesn't keep the source's content type or object metadata. Bobsled AI refuses a copy whose destination folder overlaps its source folder in the same bucket. Parquet output doesn't change: it keeps a folder for each task attempt.

Copied file tags

Each copied file carries the following tags as object metadata. A copy shared to a Partner's own bucket carries none.

Tag
Holds
dogsled-run-idThe run that copied the file
dogsled-attempt-idThe task attempt that copied it
dogsled-pipelineThe pipeline
dogsled-sourceThe file's key in the source
dogsled-source-modifiedWhen the source file last changed

Bobsled AI percent-encodes each tag value. Decode it with decodeURIComponent. Object metadata has a 2 KB limit on S3, and Bobsled AI applies the same limit on Google Cloud Storage. When the source key doesn't fit, Bobsled AI leaves dogsled-source off that file, and the copy continues.

Changes, retries, and replacement

A copy handles changes and retries as follows:

  • When a source file changes, the next run copies it again and replaces the old file.
  • If you delete a source file, its copy stays at the destination.
  • A retry copies the same files again to the same paths and replaces what the failed attempt wrote.
  • On a landing connection or a share link, files from a failed attempt have no receipt until a run succeeds. Their tags name the attempt.

A copy replaces any file with the same name in its folder. That includes a file that Bobsled AI didn't write and a file that a copy in another Project writes. Validation refuses two copies in one Project that write to the same folder, or to one folder inside the other. Validation can't see other Projects or other writers. Point a copy at a folder that only that copy writes.

Replacing a file needs replace access on the destination. Amazon S3 and Google Cloud Storage setup both grant it. For a Google Cloud Storage connection that you set up earlier, open More actions, select Setup IAM, and then run the commands again. A Partner's own Google Cloud Storage bucket has its own commands. For more information, see Connect to Google Cloud Storage.

A file encrypted with a key that only its owner holds fails the run. These files are S3 objects with SSE-C and Google Cloud Storage objects with a customer-supplied key.

Copy receipts and delivery markers

A copy to a landing connection or a share link writes a version 5 receipt. For its fields, see Receipt fields. Every run shares the table's data/ folder that the receipt names. To find the files of one delivery, see Read the delivered files.

The receiver doesn't load copied files. Loading lists the copy's table as Kept as files, not loaded. It still loads the other tables in the same delivery.

On a locked S3 connection that isn't a Partner link, a run that copies files writes a version 3 delivery marker. For more information, see Delivery markers on other locked S3 connections.

What's next

On this page