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

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

variable "service_name" {
  default = "dd-search"
}

variable "lambda_name" {
  default = "lambda-dd-search"
}

variable "application_family" {
  default = "vector"
}

variable "lambda_default_timeout" {
  description = "Default value for timeout"
  default     = "300"
}

variable "lambda_memory_size" {
  description = "Memory size for the lambda function"
  default     = "512"
}

variable "es_instance_type" {
  # These instances are covered by a Reserved Instance purchase, so changing the instance type could have significant cost implications.
  # Please consult with the DevOps team before making any changes to this.
  default = "r6g.2xlarge.elasticsearch"
}

variable "es_disk_size" {
  default = 250
}

variable "lambda_function_reserved_concurrent_executions" {
  default = 10
}

variable "kinesis_batch_size" {
  default = "95"
}

variable "kinesis_shard_count" {
  default = 5
}

variable "ar_mysql_host" {
  default = "ar-db.theorchard.com"
}

variable "dd_mysql_host" {
  default = "dd-db.theorchard.com"
}

variable "mysql_password_secret_names" {
  type = list(string)
  default = [
    "DD_MYSQL_PASSWORD",
    "AR_MYSQL_PASSWORD",
  ]
}

variable "es_disk_datadog_monitor_critical" {
  default = 20000
}

variable "es_disk_datadog_monitor_warning" {
  default = 30000
}

variable "kinesis_lag_datadog_monitor_critical" {
  default = 14400
}

variable "kinesis_lag_datadog_monitor_warning" {
  default = 7200
}
