43 lines
1.1 KiB
Terraform
43 lines
1.1 KiB
Terraform
terraform {
|
|
required_providers {
|
|
nubes = {
|
|
source = "tf-registry.containerk8s.services.ngcloud.ru/nubes-dev/nubes"
|
|
version = "2.0.20"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "nubes" {
|
|
api_token = var.api_token
|
|
api_endpoint = "https://lk-api-gateway-dev.ngcloud.ru/api/v1/svc"
|
|
}
|
|
|
|
# --- значения берутся из ЛК (см. README) ---
|
|
|
|
variable "api_token" {
|
|
type = string
|
|
sensitive = true
|
|
description = "ЛК → Профиль → Токены → «Технический»"
|
|
}
|
|
|
|
variable "organization" {
|
|
type = string
|
|
description = "Имя организации из ЛК (например: organ)"
|
|
}
|
|
|
|
variable "org_uid" {
|
|
type = string
|
|
description = "UUID той же организации (нужен ресурсу аллокации IP)"
|
|
}
|
|
|
|
variable "ip_space_name" {
|
|
type = string
|
|
description = "Имя ipSpace, доступное организации (например: internet-ipv4-v1)"
|
|
}
|
|
|
|
variable "ip_count" {
|
|
type = string
|
|
default = "3"
|
|
description = "Сколько внешних IP выделить (строка)"
|
|
}
|