refactor: org as variable, not managed resource

This commit is contained in:
“Naeel”
2026-07-09 08:46:03 +04:00
parent b0f07d4f0f
commit a883d9ce38
2 changed files with 4 additions and 9 deletions
+2 -3
View File
@@ -12,10 +12,9 @@ variable "api_token" {
sensitive = true
description = "Nubes API token"
}
variable "realm" {
variable "org_uid" {
type = string
sensitive = true
description = "resource_realm parameter for nubes_vc_org resource"
description = "UUID существующей организации vCloud Director (из ЛК)"
}
provider "nubes" {
+2 -6
View File
@@ -1,6 +1,2 @@
resource "nubes_vc_org" "org" {
resource_name = "NaeelOrg"
resource_realm = var.realm
v_i_p_configure = jsonencode([{ name = "internet-ipv4-v1", count = "10" }])
adopt_existing_on_create = true
}
# vcOrg — НЕ управляется Terraform, используется существующая организация
# org_uid задаётся в terraform.tfvars