
#Database

#########################################
### Database Variables Aurora Cluster ###
#########################################



variable "name" {
  description = "Name of the database"
  type        = string
  default     = "big-pond-prod-aurora-mysql-cluster"
}

variable "engine_name" {
  description = "Name of the database engine"
  type        = string
  default     = "aurora-mysql"
}

variable "engine_mode" {
  description = "Database Mode Type"
  type        = string
  default     = "provisioned"
}

variable "engine_version" {
  description = "Version of the database to be launched"
  default     = "8.0.mysql_aurora.3.02.2"
  type        = string
}

variable "port" {
  description = "Port which the database should run on"
  type        = number
  default     = 3306
}

variable "database_name" {
  description = "Name of the database to be created"
  default     = "test_database"
  type        = string
}

variable "username" {
  description = "Master username of the DB"
  default     = "admin"
  type        = string
}

variable "password" {
  description = "Master password of the DB"
  default     = ""
  type        = string
}

variable "deletion_protection" {
  default = true
}

variable "backup_retention_period" {
  default = 35
}

variable "preferred_maintenance_window_instance" {
  default = "sun:00:00-sun:01:00"
}

variable "auto_minor_version_upgrade" {
  default = true
}

variable "allow_major_version_upgrade" {
  type    = bool
  default = true
}

variable "preferred_backup_window_db" {
  default = "02:00-03:00"
}

variable "apply_immediately" {
  default = "true"
}

variable "storage_encrypted" {
  description = "Specifies whether the DB instance is encrypted"
  type        = bool
  default     = true
}

##########################################
### Database Variables Aurora Instance ###
##########################################

variable "identifier_1" {
  description = "The Instance identifier"
  type        = string
  default     = "big-pond-aurora-cluster-instance-1a"
}

variable "identifier_2" {
  description = "The Instance identifier"
  type        = string
  default     = "big-pond-aurora-cluster-instance-1b"
}

variable "cluster_instance" {
  description = "Serverless class to be used to run the database"
  type        = string
  default     = "db.serverless"
}

# variable "license_model" {
#   description = "License model of the DB instance"
#   type        = string
#   default     = "general-public-license"
# }

variable "publicly_accessible" {
  default = false
}

variable "monitoring_interval" {
  default = 60
}

variable "performance_insights_enabled" {
  type    = string
  default = true
}

variable "create_resources" {
  default = true
}

variable "copy_tags_to_snapshot" {
  default = true
}