refactor: vdc as variable, add vdc_uid

This commit is contained in:
“Naeel”
2026-07-09 09:14:10 +04:00
parent c36212422c
commit 1f36fa72eb
2 changed files with 6 additions and 10 deletions
+4
View File
@@ -16,6 +16,10 @@ variable "org_uid" {
type = string
description = "UUID существующей организации vCloud Director (из ЛК)"
}
variable "vdc_uid" {
type = string
description = "UUID существующего vDC (из ЛК)"
}
provider "nubes" {
api_token = var.api_token
+2 -10
View File
@@ -1,10 +1,2 @@
# ===== vcOrg — существующая, НЕ управляется Terraform =====
# org_uid задаётся в terraform.tfvars (имя или UUID)
# ===== vcVdc =====
resource "nubes_vc_vdc" "vdc" {
resource_name = "kc-vdc-tf"
organization_uid = var.org_uid
network_provider = "TODO" # ← подставить из plan: зависит от организации
provider_vdc = "TODO" # ← подставить из plan: зависит от организации и network_provider
}
# ===== vcOrg и vcVdc — существующие, НЕ управляются Terraform =====
# org_uid и vdc_uid задаются в terraform.tfvars