[Yandex Cloud documentation](../index.md) > [Yandex Managed Service for ClickHouse®](index.md) > Terraform reference

# Terraform reference for Yandex Managed Service for ClickHouse®

With [Terraform](https://www.terraform.io/), you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

Terraform is distributed under the [Business Source License](https://github.com/hashicorp/terraform/blob/main/LICENSE). The [Yandex Cloud provider for Terraform](https://github.com/yandex-cloud/terraform-provider-yandex) is distributed under the [MPL-2.0](https://www.mozilla.org/en-US/MPL/2.0/) license.


For more information about Terraform, see [this tutorial](../tutorials/infrastructure-management/terraform-quickstart.md#install-terraform).

## Resources {#resources}

Managed Service for ClickHouse® supports the following Terraform provider resources:

| **Terraform resource** | **Yandex Cloud resource** |
| --- | --- |
| [yandex_mdb_clickhouse_cluster](../terraform/resources/mdb_clickhouse_cluster.md) | [Cluster](concepts/index.md) |
| [yandex_mdb_clickhouse_cluster_v2](../terraform/resources/mdb_clickhouse_cluster_v2.md) | Cluster |
| [yandex_mdb_clickhouse_cluster_iam_binding](../terraform/resources/mdb_clickhouse_cluster_iam_binding.md) | [Configuring](../iam/concepts/access-control/index.md#access-bindings) cluster access permissions |
| [yandex_mdb_clickhouse_database](../terraform/resources/mdb_clickhouse_database.md) | Database |
| [yandex_mdb_clickhouse_user](../terraform/resources/mdb_clickhouse_user.md) | Managed Service for ClickHouse® user |

## Data sources {#data-sources}

Managed Service for ClickHouse® supports the following Terraform provider data sources:

| **Terraform data source** | **Description** |
| --- | --- |
| [yandex_mdb_clickhouse_cluster](../terraform/data-sources/mdb_clickhouse_cluster.md) | [Cluster](concepts/index.md) information |
| [yandex_mdb_clickhouse_cluster_v2](../terraform/data-sources/mdb_clickhouse_cluster_v2.md) | Cluster information |
| [yandex_mdb_clickhouse_database](../terraform/data-sources/mdb_clickhouse_database.md) | Database information |
| [yandex_mdb_clickhouse_user](../terraform/data-sources/mdb_clickhouse_user.md) | Managed Service for ClickHouse® user information |

_ClickHouse® is a registered trademark of [ClickHouse, Inc](https://clickhouse.com)._