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
-
project_id
- (Required) Unique identifier of the associated project. Retrieved from the selectel_vpc_project_v2 resource. Learn more about Projects. -
region
- (Required) Pool where the database is located, for example,ru-3
. Learn more about available pools in the Availability matrix. -
filter
- (Optional) Values to filter available datastore types:-
engine
- (Optional) Engine of the datastore type to search. Available values arepostgresql
(for PostgreSQL, PostgreSQL for 1C, PostgreSQL TimescaleDB),mysql
(for MySQL sync),mysql_native
(for MySQL semi-sync),redis
(for Redis), andkafka
(for Kafka). -
version
- (Optional) Version of the datastore type to search. For PostgreSQL for 1C, the versions are in the format<version_number>-1C
. For PostgreSQL TimescaleDB, the versions are in the format<version_number>-TimescaleDB
. Learn more about available versions for PostgreSQL, PostgreSQL for 1C, PostgreSQL TimescaleDB, MySQL semi-sync, MySQL sync, Redis, and Kafka.
-
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.
-