variable "region" {
  type    = string
  default = "ap-southeast-1"
}

variable "project" {
  type    = string
  default = "helix"
}

variable "environment" {
  type    = string
  default = "prod"
}

variable "vpc_id" {
  type        = string
  description = "VPC ID where the PrivateLink endpoint will be created"
}

variable "private_subnet_ids" {
  type        = list(string)
  description = "Private subnet IDs for the VPC endpoint"
}

variable "db_security_group_id" {
  type        = string
  description = "Security group ID allowing TiDB port (4000) from app"
}

# ─── TiDB Cloud Cluster Configuration ────────────────────────────────────────

variable "tidb_project_id" {
  type        = string
  description = "TiDB Cloud project ID"
}

variable "tidb_region" {
  type    = string
  default = "ap-southeast-1"
}

variable "tidb_root_password" {
  type        = string
  sensitive   = true
  description = "Root password for the TiDB cluster"
}

variable "tidb_node_size" {
  type    = string
  default = "4C16G"
}

variable "tidb_node_quantity" {
  type    = number
  default = 1
}

variable "tikv_node_size" {
  type    = string
  default = "4C16G"
}

variable "tikv_node_quantity" {
  type    = number
  default = 3
}

variable "tikv_storage_size_gib" {
  type    = number
  default = 500
}
