Pular para o conteúdo

Manage sinks

Atualizado em Ver como Markdown

Learn how to:

  • Create and configure sinks for data storage
  • View sink configuration
  • Delete sinks when no longer needed

Create a sink

Sinks are made available to pipelines as SQL tables using the sink name (e.g., INSERT INTO my_sink SELECT * FROM my_stream).

Dashboard

  1. In the Cloudflare dashboard, go to the Pipelines page.

    Go to Pipelines ↗
  2. Select Create Pipeline to launch the pipeline creation wizard.

  3. Complete the wizard to create your sink along with the associated stream and pipeline.

Wrangler CLI

To create a sink, run the pipelines sinks create command:

npx wrangler pipelines sinks create <SINK_NAME> \
  --type r2 \
  --bucket my-bucket \

For sink-specific configuration options, refer to Available sinks.

Alternatively, to use the interactive setup wizard that helps you configure a stream, sink, and pipeline, run the pipelines setup command:

npx wrangler pipelines setup

View sink configuration

Dashboard

  1. In the Cloudflare dashboard, go to Pipelines > Sinks.

  2. Select a sink to view its configuration.

Wrangler CLI

To view a specific sink, run the pipelines sinks get command with either the sink ID or sink name:

npx wrangler pipelines sinks get <SINK_NAME_OR_ID>

To list all sinks in your account, run the pipelines sinks list command:

npx wrangler pipelines sinks list

Delete a sink

Dashboard

  1. In the Cloudflare dashboard, go to Pipelines > Sinks.

  2. Select the sink you want to delete.

  3. In the Settings tab, navigate to General, and select Delete.

Wrangler CLI

To delete a sink, run the pipelines sinks delete command:

npx wrangler pipelines sinks delete <SINK_ID>

Limitations

  • Sinks cannot be modified after creation. To change sink configuration, you must delete and recreate the sink.
  • The R2 Data Catalog Sink does not currently support writing to R2 buckets into a different jurisdiction.