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

variable "config_s3_bucket" {
  description = "S3 bucket where encrypted content is stored"
  default     = "nickelback"
}

variable "config_service_name" {
  description = "Service name for config locations"
  default     = "orchard-repo-cron-worker"
}

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

variable "service_name" {
  default = "auto-encoding-order-upc"
}

variable "m2m_service_name" {
  default = "generate-full-catalog-encoding-orders"
}

variable "application_family" {
  default = "php-monolith"
}

variable "scale_up_cooldown_period" {
  description = "Scaling cooldown period in seconds"
  default     = 60
}

variable "scale_down_cooldown_period" {
  description = "Scaling cooldown period in seconds"
  default     = 60
}

variable "scale_up_adjustment" {
  description = "Number of tasks to add in response to scaling action."
  default     = 1
}

variable "scale_down_adjustment" {
  description = "Number of tasks to remove when alarm is in OK status."
  default     = -1
}

variable "minimum_capacity" {
  default = 0
}

variable "maximum_capacity" {
  default = 24
}

locals {
  service_name_to_queue_map = {
    "auto-encoding-order-upc" = {
      service_name       = "auto-encoding-order-upc"
      queue_name         = "${var.environment}-automated_encoding_order_upcs"
      topic_name         = "automated_encoding_orders"
      number_of_messages = "500"
    }
    "error-correction-upc" = {
      service_name       = "error-correction-upc"
      queue_name         = "${var.environment}-error_correction_upcs"
      topic_name         = "error_corrections"
      number_of_messages = "500"
    }
    "carveout-changed-upc" = {
      service_name       = "carveout-changed-upc"
      queue_name         = "${var.environment}-carveout_changed_upcs"
      topic_name         = "carveout"
      number_of_messages = "100"
    }
  }
}

variable "team_name" {
  default = "content-delivery-asset-management"
}
