page_title | subcategory | description |
---|---|---|
twc_configurator Data Source - Timeweb Cloud |
Configurator data source that provides information about available hardware parameters with their restrictions with filtering and selection suitable one. All parameters are filters, so you can use only needed. Available configurators may be retrieved from API https://api.timeweb.cloud/api/v1/configurator/servers |
Configurator data source that provides information about available hardware parameters with their restrictions with filtering and selection suitable one. All parameters are filters, so you can use only needed. Available configurators may be retrieved from API
data "twc_os" "example-os" {
name = "ubuntu"
version = "22.04"
}
# Select any configurator with location = "ru-1"
data "twc_configurator" "example-configurator" {
location = "ru-1"
}
# Usage example of selected configuration
resource "twc_server" "example-server" {
name = "Example server"
os_id = data.twc_os.example-os.id
configuration {
configurator_id = data.twc_configurator.example-configurator.id
disk = 1024 * 10
cpu = 1
ram = 1024
}
}
cpu_frequency
(String) CPU frequency for the created server (3.3
)disk_type
(String) Disk type for the created server (ssd
,nvme
,hdd
)location
(String) Location for the created server (ru-1
,ru-2
,pl-1
,kz-1
). When server was created all new presets or configuration may be only chosen from same location
id
(String) The ID of this resource.requirements
(Block List) Configuration limitations for specified configurator (see below for nested schema)
Read-Only:
cpu_max
(Number) Maximum allowed CPU countcpu_min
(Number) Minimum allowed CPU countcpu_step
(Number) Step between allowed CPU countsdisk_max
(Number) Maximum allowed disk sizedisk_min
(Number) Minimum allowed disk sizedisk_step
(Number) Step between allowed disk sizesnetwork_bandwidth_max
(Number) Maximum allowed network bandwidth capacitynetwork_bandwidth_min
(Number) Minimum allowed network bandwidth capacitynetwork_bandwidth_step
(Number) Step between allowed network bandwidth capacitiesram_max
(Number) Maximum allowed RAM sizeram_min
(Number) Minimum allowed RAM sizeram_step
(Number) Step between allowed RAM sizes