page_title | subcategory | description |
---|---|---|
twc_database_cluster Resource - Timeweb Cloud |
Resource for describing needed database cluster and provides actual information about its status |
Resource for describing needed database cluster and provides actual information about its status
# Select any preset from location = "ru-1", 8 Gb disk space with price between 100 and 500 RUB for MySQL
data "twc_database_preset" "example-db-preset" {
location = "ru-1"
type = "mysql"
disk = 8 * 1024
price_filter {
from = 100
to = 500
}
}
# Create example cluster of MySQL type with auto_increment_increment parameter override
resource "twc_database_cluster" "example-mysql-8" {
name = "example_mysql_8"
type = "mysql"
config_parameters = {
auto_increment_increment = 3
}
preset_id = data.twc_database_preset.example-db-preset.id
}
name
(String) Name for database clusterpreset_id
(Number) Preset ID for database clustertype
(String) Type of database cluster
availability_zone
(String) Availability zone for database clusterconfig_parameters
(Map of String) Configuration parameters for database clusterdescription
(String) Description for projecthash_type
(String) Hash type for databaseis_external_ip
(Boolean) Flag that shows allowability database only by external IP addressnetwork
(Block List, Max: 1) Network for database cluster (see below for nested schema)project_id
(Number) Project ID for managed resourcereplications
(Number) Number of replication instances
disk_stats
(List of Object) Information about database disk stats (see below for nested schema)id
(String) The ID of this resource.location
(String) Location for the server (ru-1
,ru-2
,pl-1
,kz-1
, etc.)networks
(List of Object) (see below for nested schema)parameters
(Map of String) Configuration parameters for database clusterport
(Number) Listening port for incoming connectionsstatus
(String) Current status of database cluster (started
,starting
,stopped
,no_paid
)
Required:
id
(String) Network ID
Read-Only:
size
(Number)used
(Number)
Read-Only:
ips
(List of Object) (see below for nested schema)type
(String)
Read-Only:
ip
(String)type
(String)