page_title | subcategory | description |
---|---|---|
twc_os Data Source - Timeweb Cloud |
Data source that provides bunch of useful parameters for filtering and suitable OS selection. All parameters are filters, so you can use only needed. Available OS may be retrieved from API https://api.timeweb.cloud/api/v1/os/servers |
Data source that provides bunch of useful parameters for filtering and suitable OS selection. All parameters are filters, so you can use only needed. Available OS may be retrieved from API
data "twc_configurator" "example-configurator" {
location = "ru-1"
}
# Select OS with name = "ubuntu" and version = "22.04"
data "twc_os" "example-os" {
name = "ubuntu"
version = "22.04"
}
# Usage example of selected OS
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
}
}
family
(String) Family of specified OSname
(String) Name of specified OSversion
(String) Version of specified OS
description
(String) Description of specified OSid
(String) The ID of this resource.requirements
(Block List) Configuration requirements to install specified OS (see below for nested schema)version_codename
(String) Codename of specified OS
Read-Only:
bandwidth_min
(Number) Minimal allowed network bandwidth capacitycpu_min
(Number) Minimal allowed CPU countdisk_min
(Number) Minimal allowed disk sizeram_min
(Number) Minimal allowed RAM size