selectel_dbaas_kafka_datastore_v1
Эта инструкция — копия документации Selectel Terraform-провайдера в Terraform Registry.
Creates and manages a Kafka datastore using public API v1. For more information about Managed Databases, see the official Selectel documentation.
Example usage
resource "selectel_dbaas_kafka_datastore_v1" "datastore_1" {
name = "datastore-1"
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
type_id = data.selectel_dbaas_datastore_type_v1.datastore_type_1.datastore_types[0].iddatastore_types[0].id
subnet_id = selectel_vpc_subnet_v2.subnet.subnet_id
node_count = 1
flavor {
vcpus = 2
ram = 8192
disk = 32
disk_type = "network-ultra"
}
}
Argument Reference
-
name
— (Required) Datastore name. Changing this creates a new datastore. -
project_id
— (Required) Unique identifier of the associated project. Changing this creates a new datastore. Retrieved from the selectel_vpc_project_v2 resource. Learn more about Projects. -
region
— (Required) Pool where the database is located, for example,ru-3
. Changing this creates a new datastore. Learn more about available pools in the Availability matrix. -
subnet_id
— (Required) Unique identifier of the associated OpenStack network. Changing this creates a new datastore. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation. -
type_id
— (Required) Unique identifier of the datastore type. Changing this creates a new datastore. Retrieved from the selectel_dbaas_datastore_type_v1 data source. -
node_count
— (Required) Number of nodes in the datastore. The only available value is 1. Learn more about Replication. -
flavor_id
— (Optional) Unique identifier of the flavor for the datastore. Can be skipped whenflavor
is set. You can retrieve information about available flavors with the selectel_dbaas_flavor_v1 data source. -
flavor
— (Optional) Flavor configuration for the datastore. You can retrieve information about available flavors with the selectel_dbaas_flavor_v1 data source. Learn more about available configurations for Kafka.-
vcpus
— (Required) Number of vCPUs. -
ram
— (Required) Amount of RAM in MB. -
disk
-