refactor: org as variable, not managed resource
This commit is contained in:
@@ -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" {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user