- Added DEV_STAND/FullPipe with modular configuration for vc_vdc resource creation:
- versions.tf: Terraform >= 1.5.0, provider nubes 2.0.1
- provider.tf: nubes provider config with DEV gateway endpoint
- variables.tf: variables for vdc (cpu=8, mem=32, guaranteed=0, fast storage=200GB)
- vdc.tf: nubes_vc_vdc resource definition supporting org name or UUID
- outputs.tf: vdc_id, vdc_name, vdc_state_params
- terraform.tfvars.example: example values without secrets
- Added docs/DEBUG_REPORT_VC_VDC_500.md documenting API 500 issue in Lucee backend:
- Error: getResourceRealmConfig fails casting Struct to string on GET /instanceOperations/{opUid}?fields=cfsParams
- Planned changes in provider/internal/core/client.go:
Implement graceful fallback in createInstanceWithContext to skip hard-failing
when GET ?fields=cfsParams returns 500, since vc_vdc ref parameters (organization_uid)
are already resolved to UUID and remaining parameters are literals/numbers.
60 lines
1.4 KiB
Terraform
60 lines
1.4 KiB
Terraform
variable "api_token" {
|
|
type = string
|
|
sensitive = true
|
|
description = "API-токен Nubes"
|
|
}
|
|
|
|
variable "api_endpoint" {
|
|
type = string
|
|
default = "https://lk-api-gateway-dev.ngcloud.ru/api/v1/svc"
|
|
description = "API Gateway URL"
|
|
}
|
|
|
|
# Имя (display_name, напр. "kontora") ИЛИ UUID организации из ЛК
|
|
variable "organization" {
|
|
type = string
|
|
description = "Имя или UUID организации (vc_org)"
|
|
}
|
|
|
|
variable "vdc_resource_name" {
|
|
type = string
|
|
default = "fullpipe-vdc"
|
|
description = "Имя VDC"
|
|
}
|
|
|
|
variable "vdc_network_provider" {
|
|
type = string
|
|
default = "default"
|
|
description = "Сетевой провайдер (неизменяемый)"
|
|
}
|
|
|
|
variable "vdc_provider_vdc" {
|
|
type = string
|
|
default = "fast-2.8"
|
|
description = "Профиль Provider VDC (неизменяемый)"
|
|
}
|
|
|
|
variable "vdc_cpu_allocated" {
|
|
type = number
|
|
default = 8
|
|
description = "vCPU (шт.)"
|
|
}
|
|
|
|
variable "vdc_cpu_guaranteed" {
|
|
type = number
|
|
default = 0
|
|
description = "Резервирование vCPU (%, допустимо: 0, 50, 80)"
|
|
}
|
|
|
|
variable "vdc_mem_allocated" {
|
|
type = number
|
|
default = 32
|
|
description = "RAM (GB)"
|
|
}
|
|
|
|
variable "vdc_storage_config" {
|
|
type = string
|
|
default = "[{\"name\":\"fast\",\"size\":200}]"
|
|
description = "Дисковое хранилище (JSON-массив, size в GB)"
|
|
}
|