variable "region" {
  default = "us-east-1"
}

variable "environment" {
  default = "prod"
}

variable "service_name" {
  default = "graphql-gateway"
}

variable "scaling_cooldown_period" {
  description = "Scaling cooldown period in seconds"
  default     = 30
}

variable "scale_up_adjustment" {
  description = "Number of tasks to add in response to cloudwatch alarm."
  default     = 3
}

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

variable "introspection" {
  default = "0"
}

variable "task_memory" {
  default = 8192
}

variable "datadog_memory" {
  default = 256
}

variable "fluentbit_memory" {
  default = 64
}

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

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

variable "critical_number_5xx" {
  description = "Number of 5xx requests (per 5m) for critical alerts"
  default     = 50
}

variable "critical_recovery_number_5xx" {
  description = "Number of 5xx requests (per 5m) for critical recovery"
  default     = 30
}

variable "warning_number_5xx" {
  description = "Number of 5xx requests (per 5m) for warnings"
  default     = 30
}

variable "warning_recovery_number_5xx" {
  description = "Number of 5xx requests (per 5m) for warning recovery"
  default     = 20
}

variable "application_alert_channel" {
  default = "@slack-graphql"
}

variable "dependent_applications" {
  description = "List of dependent applications"
  type        = list(string)
  default = [
    "all-orchard-suite"
  ]
}

variable "team_name" {
  type        = string
  description = "The team responsible for this service"
  default     = "osp"
}
