This is the official Terraform provider for ClickHouse database operations.
With this Terraform provider you can:
- Manage
databases
in aClickHouse
instance using theclickhousedbops_database
resource - Manage
users
in aClickHouse
instance using theclickhousedbops_user
resource - Manage
roles
in aClickHouse
instance using theclickhousedbops_role
resource - Manage
role grants
in aClickHouse
instance using theclickhousedbops_grant_role
resource - Manage
privilege grants
in aClickHouse
instance using theclickhousedbops_grant_privilege
resource
The clickhousedbops_user
requires at least terraform 1.11, while the other resources should work with older versions too.
You can find examples in the examples/tests directory.
Please refer to the official docs for more details.
Please read the Migration guide
Please read the Development readme