variable "region" {
  type        = string
  description = "Region to use"
  default     = "cn-north-1"
}

variable "availability_zones" {
  description = "AZ to use"
  default     = ["cn-north-1a", "cn-north-1b"]
}

variable "vpc_cidr" {
  description = "CIDR to use for the VPC"
  default     = "10.10.0.0/16"
}

variable "app_private_subnets_cidr" {
  description = "CIDR used for private subnets"
  default     = ["10.10.12.0/24", "10.10.11.0/24"]
}

variable "app_public_subnets_cidr" {
  description = "CIDR used for private subnets"
  default     = ["10.10.22.0/24", "10.10.21.0/24"]
}

variable "eks_cluster_name" {
  description = "The name of EKS cluster where JSM deployed"
  default     = "jsm-cluster"
}

variable "jsm_admin_role_arn" {
  default = "arn:aws-cn:iam::476904493177:role/jsm-admin-role"
}

variable "db_config" {
  type = object({
    name     = string
    port     = number
    password = string
    user     = string
  })
  description = "Configuration for RDS"
}

variable "confluence_db_config" {
  type = object({
    name     = string
    port     = number
    password = string
    user     = string
  })
  description = "Configuration for Confluence RDS"
}

variable "cert_id" {
  type        = string
  description = "Certificate ID in ACM"
  default     = "dad5c181-9fc9-49e2-94e5-e0c4cb2ac88b"
}

variable "hostname" {
  type    = string
  default = "support.pingcap.cn"
}

variable "confluence_hostname" {
  type    = string
  default = "kb.pingcap.cn"
}
