variable "db" {
  description = "List of database instance configurations"
  type = list(object({
    name                         = string
    create_db_instance           = bool
    type                         = string
    engine                       = string
    family                       = string
    engine_version               = string
    port                         = number
    username                     = string
    db_name                      = string
    allocated_storage            = number
    max_allocated_storage        = number
    backup_window                = string
    maintenance_window           = string
    multi_az                     = bool
    performance_insights_enabled = bool
    backup_retention_period      = number
    log_group_retention_in_days  = number
    subnet_ids                   = list(string)
    security_group_ids           = list(string)
    parameters = list(object({
      apply_method = string
      name         = string
      value        = string
    }))
    alerts_topic_arn = string
  }))
}

variable "service_tags" {
  description = "Resource tags"
  type        = map(string)
  default     = {}
}
