# Generated by Terragrunt. Sig: nIlQXj57tbuaRZEa terraform { required_version = ">= 1.0" required_providers { yandex = { source = "yandex-cloud/yandex" version = "~> 0.100" } kubernetes = { source = "hashicorp/kubernetes" version = "~> 2.23" } random = { source = "hashicorp/random" version = "~> 3.1" } } } provider "yandex" { token = var.yc_token != "" ? var.yc_token : null cloud_id = var.yc_cloud_id != "" ? var.yc_cloud_id : null folder_id = var.yc_folder_id != "" ? var.yc_folder_id : null zone = "ru-central1-a" } provider "kubernetes" { # Если kubeconfig_path не указан, провайдер использует дефолтный путь ~/.kube/config # Если указан, берем только первый путь (KUBECONFIG может содержать несколько путей через :) config_path = var.kubeconfig_path != "" ? split(":", var.kubeconfig_path)[0] : null config_context = var.kube_context != "" ? var.kube_context : null } variable "yc_token" { type = string default = "" description = "Yandex Cloud token" } variable "yc_cloud_id" { type = string default = "" description = "Yandex Cloud ID" } variable "yc_folder_id" { type = string default = "" description = "Yandex Cloud folder ID" } variable "kubeconfig_path" { type = string default = "" description = "Path to kubeconfig file" } variable "kube_context" { type = string default = "" description = "Kubernetes context" }