variable "region" {
  type = string
  description = "Region to use"
  default = "us-west-1"
}

variable "availability_zones" {
  description = "AZ to use"
  default = ["us-west-1a", "us-west-1c"]
}

variable "app_cidr" {
  description = "CIDR to use for the VPC"
  default     = "10.0.0.0/16"
}

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

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

variable "hostname" {
  type    = string
  description = "Website Hostname"
  default = "www.pingcap.com"
}

variable "k8s_cluster_name" {
  default = "wordpress-cluster"
}

variable "namespace" {
  default = "wordpress"
}

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

variable "cert_id" {
  type    = string
  description = "Certificate issued by AWS"
}
