# Create a VDC inside the organization that already exists in the personal account. resource "nubes_vc_vdc" "vdc" { # Name shown for this VDC service in the personal account. resource_name = var.vdc_resource_name # Existing organization name or UUID; this example does not create the organization. organization_uid = var.organization # Resource-platform network provider chosen for this organization. network_provider = var.vdc_network_provider # Provider VDC compatible with the selected network provider. provider_vdc = var.vdc_provider_vdc # vCPU capacity allocated to the VDC. cpu_allocated = var.vdc_cpu_allocated # Guaranteed share of allocated vCPU; PROD accepts 0, 50, or 80. cpu_guaranteed = var.vdc_cpu_guaranteed # Memory capacity allocated to the VDC, in GB. mem_allocated = var.vdc_mem_allocated # JSON storage-policy array; each policy name must exist in the selected Provider VDC. storage_config = var.vdc_storage_config # Suspend the VDC rather than fully deleting it on terraform destroy. suspend_on_destroy = true # Adopt an existing same-name VDC instead of failing during Create. adopt_existing_on_create = true }