Skip to main content
All ClickPipes types can be created and managed using the clickhouse_clickpipe resource in the ClickHouse Terraform provider. This page covers provider setup and configuration examples for each supported ClickPipe type.

Provider setup

ClickPipes support is generally available from provider version v3.14.0. If you are using an earlier version, you will need an alpha release — check the provider changelog for details.
Add the ClickHouse provider to your Terraform configuration:
See Managing API keys for instructions on creating an API key to use with the provider.

Resource overview

The clickhouse_clickpipe resource has the following top-level arguments: The id and state attributes are read-only and populated by ClickHouse Cloud after creation.

Destination

The destination block is shared across all source types:
For CDC sources (Postgres, MySQL, MongoDB, BigQuery), destination tables are created automatically from the source schema — only database is typically needed.

Examples by ClickPipe type

Kafka

Supported type values: kafka, confluent, msk, azureeventhub, redpanda, warpstream.

Kafka with schema registry

Amazon Kinesis

Kinesis with IAM role

IAM role authentication requires a ClickHouse service running on AWS.

Amazon S3

S3 continuous ingestion with SQS

For continuous ingestion using an SQS queue (unordered mode). See Configuring unordered mode for setup instructions.

Google Cloud Storage

service_account_key must be the base64-encoded content of a GCP service account JSON key file.

Azure Blob Storage

Postgres CDC

Postgres with IAM role

IAM role authentication requires a ClickHouse service running on AWS.

MySQL CDC

MongoDB CDC

BigQuery

service_account_file must be the base64-encoded content of a GCP service account JSON key file.

Scaling

All ClickPipe types support the scaling block to configure the number of replicas and their resource allocation:

Importing existing ClickPipes

Existing ClickPipes can be imported into Terraform state using both the service ID and the ClickPipe ID:
Last modified on July 1, 2026