Создана папка (без .terraform/state/lock — это состояние dev). Изменены параметры: - versions.tf: nubes-dev/nubes 2.0.1 -> nubes-test/nubes 3.0.0; - variables.tf: api_endpoint -> lk-api-gateway-test.ngcloud.ru; - terraform.tfvars: organization=NaeelOrg (найдена через API, svc 19), ip_count=10 (в test на орге уже выделено 10 IP), storage SSD (в test vDC строят на SSD); - shturval.tf: shturval-test1 / shturval-test-01 / workers-shturval-test. Коллизии проверены: в test заняты naeel-vdc, 'VDC для кластера iot-naeel', naeel_vc_nsxt, 'Edge для кластера IOT naeel', 'Кластер Kubernetes [iot-naeel]' — наши имена (fullpipe-vdc/-edge/-vapp-02, web02, shturval-test1) свободны. Проверено: terraform init (3.0.0), fmt -check OK, validate Success, plan = 7 to add / 0 change / 0 destroy. apply НЕ запускался. Документация: HISTORY/2026-10-01_test_stand_fpipegmail.md
21 lines
583 B
Terraform
21 lines
583 B
Terraform
resource "nubes_vc_vdc" "vdc" {
|
|
resource_name = var.vdc_resource_name
|
|
|
|
# Организация: имя из ЛК ("kontora") или точный UUID
|
|
organization_uid = var.organization
|
|
|
|
network_provider = var.vdc_network_provider
|
|
provider_vdc = var.vdc_provider_vdc
|
|
|
|
cpu_allocated = var.vdc_cpu_allocated
|
|
cpu_guaranteed = var.vdc_cpu_guaranteed
|
|
mem_allocated = var.vdc_mem_allocated
|
|
|
|
# JSON-массив дисковых политик (size в GB)
|
|
storage_config = var.vdc_storage_config
|
|
|
|
suspend_on_destroy = true
|
|
|
|
adopt_existing_on_create = true
|
|
}
|