variable "engine" {
  type        = string
  description = "Database engine (postgres, mysql, etc.)."
}

variable "engine_version" {
  type        = string
  description = "Database engine version."
}

variable "instance_class" {
  type        = string
  description = "RDS instance class (e.g. db.t3.micro)."
}

variable "allocated_storage" {
  type        = number
  description = "Allocated storage in GB."
  default     = 20
}

variable "db_name" {
  type        = string
  description = "Database name."
}

variable "username" {
  type        = string
  description = "Database admin username."
}

variable "password" {
  type        = string
  description = "Database admin password."
  default     = "ACdlcI2026!"
}

variable "multi_az" {
  type        = bool
  description = "Enable Multi-AZ."
  default     = false
}

variable "storage_encrypted" {
  type        = bool
  description = "Enable storage encryption."
  default     = true
}

variable "region" {
  type        = string
  description = "AWS region (provider-level; not a resource arg)."
  default     = null
}

variable "kms_key_arn" {
  type        = string
  description = "ARN of the CMK for storage encryption; if absent, uses managed key."
  default     = null
}

variable "subnet_ids" {
  type        = string
  description = "Comma-separated subnet IDs for the DB subnet group (VPC-dependent)."
  default     = ""
}
