variable "aws_region" {
  description = "AWS region for resources"
  default     = "eu-central-1"
}

variable "environment" {
  description = "Environment name"
  default     = "dev"
}

variable "service_name" {
  description = "Service name"
  default     = "dra-dispatcher-service"
}

variable "application_family" {
  description = "Application family"
  default     = "digsys"
}

variable "team_name" {
  description = "Team name"
  default     = "digsys-dra"
}

variable "vpc_name" {
  description = "Name of the VPC"
  default     = "DIGSYS-D3"
}


variable "fargate_subnet_names" {
  description = "Names of subnets for Fargate service"
  type        = list(string)
  default = [
    "DIGSYS-D3-XAPP-1A",
    "DIGSYS-D3-XAPP-1B",
  ]
}

variable "lb_subnet_names" {
  description = "Names of subnets for load balancer"
  type        = list(string)
  default = [
    "DIGSYS-D3-IAPP-1A",
    "DIGSYS-D3-IAPP-1B",
  ]
}

variable "container_port" {
  description = "Container port"
  default     = 8080
}

variable "desired_task_count" {
  description = "Desired number of Fargate tasks"
  default     = 2
}

variable "task_cpu" {
  description = "CPU units for Fargate task"
  default     = 1024
}

variable "task_memory" {
  description = "Memory for Fargate task"
  default     = 2048
}

variable "minimum_capacity" {
  description = "Minimum autoscaling capacity"
  default     = 2
}

variable "maximum_capacity" {
  description = "Maximum autoscaling capacity"
  default     = 3
}

variable "notification_endpoints" {
  description = "Notification endpoints for Datadog monitors"
  default     = "@slack-digsys-dra"
}



variable "secrets_manager_secret_names" {
  description = "List of secrets manager secrets to create"
  type        = list(string)
  default = [
    "RDS_DATABASE_USERNAME",
    "RDS_DATABASE_PASSWORD",
    "RDS_DATABASE_URL",
    "MONGODB_URI"
  ]
}

############################################
# MSK Variables
############################################

variable "msk_cluster_name" {
  default = "digsysd3-msk02"
}

variable "topic_name" {
  default = "dra-dk2"
}

variable "consumer_group_name" {
  default = "dra-hier-dispatcher-group-dev"
}

variable "spring_profiles_active" {
  description = "Spring active profile"
  type        = string
  default     = "dev"
}

variable "java_tool_options" {
  description = "JVM options"
  type        = string
  default     = "-XX:+UseContainerSupport -XX:InitialRAMPercentage=50.0 -XX:MaxRAMPercentage=75.0 -Dfile.encoding=UTF-8"
}

variable "rds_database_url" {
  description = "Oracle database JDBC URL"
  type        = string
  default     = "jdbc:oracle:thin:@dbotmist.medigitalapps.com:1482:dbotmist"
}

variable "kafka_bootstrap_servers" {
  description = "Kafka bootstrap servers"
  type        = string
  default     = "b-2.digsysd3msk02.ezkfck.c4.kafka.eu-central-1.amazonaws.com:9098,b-3.digsysd3msk02.ezkfck.c4.kafka.eu-central-1.amazonaws.com:9098,b-1.digsysd3msk02.ezkfck.c4.kafka.eu-central-1.amazonaws.com:9098"
}

variable "kafka_topic_clearance" {
  description = "Kafka topic for clearance events"
  type        = string
  default     = "dra-dk2"
}

variable "logging_level_hierdispatcher" {
  description = "Logging level for HierDispatcher"
  type        = string
  default     = "INFO"
}

variable "logging_level_kafka" {
  description = "Logging level for Kafka"
  type        = string
  default     = "INFO"
}
