# Variables for Nginx Proxy Module

variable "resource_group_name" {
  description = "Name of the resource group"
  type        = string
}

variable "location" {
  description = "Azure region"
  type        = string
}

variable "cluster_name" {
  description = "Name of the cluster"
  type        = string
}

variable "subnet_id" {
  description = "Subnet ID for Nginx proxy"
  type        = string
}

variable "backend_vms" {
  description = "Map of backend VMs by region with their IPs"
  type = map(object({
    region      = string
    private_ips = list(string)
    public_ips  = list(string)
  }))
}

variable "admin_username" {
  description = "Admin username for VM"
  type        = string
  default     = "besuadmin"
}

variable "ssh_public_key" {
  description = "SSH public key for VM access"
  type        = string
  sensitive   = true
}

variable "environment" {
  description = "Environment (prod, dev, test, staging)"
  type        = string
}

variable "tags" {
  description = "Tags to apply to resources"
  type        = map(string)
  default     = {}
}

