variable "project_id" { description = "GCP project ID." type = string } variable "region" { description = "GCP region to deploy into." type = string default = "us-central1" } variable "image_tag" { description = "Bifrost Docker image tag." type = string default = "latest" } variable "name_prefix" { description = "Prefix for all resource names." type = string default = "bifrost" } # --- Config: file-based --- variable "config_json_file" { description = "Path to a Bifrost config.json file. Variables below override matching keys." type = string default = null } # --- Config: variable-based overrides --- variable "config_store" { description = "Config store configuration (type: sqlite/postgres)." type = any default = null } variable "logs_store" { description = "Logs store configuration (type: sqlite/postgres)." type = any default = null } variable "providers_config" { description = "LLM provider configurations (openai, anthropic, vertex, etc.)." type = any default = null } # --- Compute --- variable "desired_count" { description = "Number of Kubernetes pods." type = number default = 1 } variable "cpu" { description = "CPU in millicores for each pod." type = number default = 500 } variable "memory" { description = "Memory in MB for each pod." type = number default = 1024 } # --- Cluster --- variable "create_cluster" { description = "Create a new GKE cluster. Set to false to use an existing cluster." type = bool default = true } variable "node_count" { description = "Number of nodes in the GKE node pool." type = number default = 3 } variable "create_load_balancer" { description = "Create a load balancer via Kubernetes Ingress." type = bool default = true } # --- Autoscaling --- variable "enable_autoscaling" { description = "Enable Horizontal Pod Autoscaler." type = bool default = false } variable "min_capacity" { description = "Minimum number of pods when autoscaling is enabled." type = number default = 1 } variable "max_capacity" { description = "Maximum number of pods when autoscaling is enabled." type = number default = 10 }