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

# Terraform reference for Yandex Managed Service for PostgreSQL

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 PostgreSQL supports the following Terraform provider resources:

| **Terraform resource** | **Yandex Cloud resource** |
| --- | --- |
| [yandex_mdb_postgresql_cluster](../terraform/resources/mdb_postgresql_cluster.md) | [PostgreSQL cluster](concepts/index.md) |
| [yandex_mdb_postgresql_cluster_iam_binding](../terraform/resources/mdb_postgresql_cluster_iam_binding.md) | [Configuring](../iam/concepts/access-control/index.md#access-bindings) cluster access permissions |
| [yandex_mdb_postgresql_database](../terraform/resources/mdb_postgresql_database.md) | PostgreSQL database |
| [yandex_mdb_postgresql_user](../terraform/resources/mdb_postgresql_user.md) | PostgreSQL user |

## Data sources {#data-sources}

Managed Service for PostgreSQL supports the following Terraform provider data sources:

| **Terraform data source** | **Description** |
| --- | --- |
| [yandex_mdb_postgresql_cluster](../terraform/data-sources/mdb_postgresql_cluster.md) | [PostgreSQL cluster](concepts/index.md) information |
| [yandex_mdb_postgresql_database](../terraform/data-sources/mdb_postgresql_database.md) | PostgreSQL database information |
| [yandex_mdb_postgresql_user](../terraform/data-sources/mdb_postgresql_user.md) | PostgreSQL user information |