Перейти к основному содержимому
selectel_dbaas_datastore_type_v1
Последнее изменение:

selectel_dbaas_datastore_type_v1

к сведению

Эта инструкция — копия документации Selectel Terraform-провайдера в Terraform Registry.

Provides a list of available datastore types in Managed Databases. For more information about available datastore types, see the official Selectel documentation.

Example Usage for PostgreSQL

data "selectel_dbaas_datastore_type_v1" "datastore_type_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
filter {
engine = "postgresql"
version = "14"
}
}

Example Usage for PostgreSQL for 1C

data "selectel_dbaas_datastore_type_v1" "datastore_type_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
filter {
engine = "postgresql"
version = "14-1C"
}
}

Example Usage for PostgreSQL TimescaleDB

data "selectel_dbaas_datastore_type_v1" "datastore_type_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
filter {
engine = "postgresql"
version = "14-TimescaleDB"
}
}

Example Usage for MySQL semi-sync

data "selectel_dbaas_datastore_type_v1" "datastore_type_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
filter {
engine = "mysql_native"
version = "8"
}
}

Example Usage for MySQL sync

data "selectel_dbaas_datastore_type_v1" "datastore_type_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
filter {
engine = "mysql"
version = "8"
}
}

Example Usage for Redis

data "selectel_dbaas_datastore_type_v1" "datastore_type_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
filter {
engine = "redis"
version = "6"
}
}

Example Usage for Kafka

data "selectel_dbaas_datastore_type_v1" "datastore_type_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
filter {
engine = "kafka"
version = "3.5"
}
}

Argument Reference

Attributes Reference

  • datastore_types - List of available datastore types.

    • id - ID of the datastore type.

    • engine - Engine of the datastore type.

    • version - Version of the datastore type.