Pipelines and R2 Data Catalog now supported in Terraform
Key Points
- Terraform support for Pipelines and R2 Data Catalog
- Four new resources for infrastructure-as-code data pipelines
- SQL-based stream-to-sink transformations with Iceberg tables
Summary
Cloudflare Pipelines and R2 Data Catalog are now manageable through Terraform via the Cloudflare Terraform provider v5.19.0. This enables infrastructure-as-code definitions for your entire data pipeline.
Key Points
- Four new Terraform resources added:
cloudflare_r2_data_catalog,cloudflare_pipeline_stream,cloudflare_pipeline_sink, andcloudflare_pipeline - Define complete data pipelines as infrastructure-as-code with streams, sinks, and SQL transformations
- Pipelines ingest streaming data via Workers or HTTP endpoints, transform with SQL, and write to R2 as Apache Iceberg tables
- R2 Data Catalog manages Iceberg tables, compaction, and compatibility with query engines (R2 SQL, Spark, DuckDB)
- Full end-to-end examples available in Pipelines Terraform documentation including R2 bucket creation and API token provisioning