variable "aws_region" {
  default     = "us-east-1"
  description = "AWS region"
}

variable "environment" {
  description = "Available values:  dev, qa, prod."
  default     = "qa"
}

variable "service_name" {
  default = "ksqldb-server"
}

variable "application_family" {
  default = "data-platform"
}

variable "additional_tags" {
  type = map(string)
  default = {
    project = "kafka-data-highway"
  }
}

variable "secrets_manager_secret_names" {
  description = "List of secrets manager secrets to create"
  type        = list(string)
  default = [
    "nginx-auth-proxy-users"
  ]
}

variable "datadog_monitor_enabled" {
  default = true
}

variable "datadog_monitor_threshold" {
  default = 1
}

locals {

  # Concatenate required and user-supplied tags
  combined_resource_tags = concat(
    [
      "environment:${var.environment}",
      "service_name:${var.service_name}",
      "application_family:${var.application_family}"
    ],
    [for tag_name, tag_value in var.additional_tags : "${tag_name}:${tag_value}"]
  )
}
