Skip to content

Repository files navigation

Clickhouse DB ops Terraform Provider

Docs Dependabot Updates Unit tests

This is the official Terraform provider for ClickHouse database operations.

With this Terraform provider you can:

  • Manage databases in a ClickHouse instance using the clickhousedbops_database resource
  • Manage users in a ClickHouse instance using the clickhousedbops_user resource
  • Manage roles in a ClickHouse instance using the clickhousedbops_role resource
  • Manage role grants in a ClickHouse instance using the clickhousedbops_grant_role resource
  • Manage privilege grants in a ClickHouse instance using the clickhousedbops_grant_privilege resource

Getting started

The clickhousedbops_user resource works with both Terraform and OpenTofu. Write-only authentication values (the auth block's value_wo fields and the legacy password_sha256_hash_wo) require at least Terraform 1.11 (write-only arguments support); the in-state value / password_sha256_hash fields work with all versions. All other resources work with older versions too.

You can find examples in the examples/tests directory.

Please refer to the official docs for more details.

Migrating from terraform-provider-clickhouse

Please read the Migration guide

Development and contributing

Please read the Development readme

About

This is the official Terraform provider for ClickHouse database operations.

Topics

Resources

Stars

Watchers

Forks

Releases

Used by

Contributors

Languages