variable "aws_region" {
  default     = "us-east-1"
  description = "All elements have to be placed in the same region."
}

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

variable "service_name" {
  default = "ows-grass"
}

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

variable "team_name" {
  type    = string
  default = "permissions-platform"
}

# non sensitive env variables
variable "DB_URL" {
  description = "Fully qualified database connection url for sqlachemy mysql://username:password@host:port/database"
  default     = "sqlite://"
}

variable "LOGGER_HANDLER_ASYNC" {
  default = "1"
}

variable "SESSION_DURATION" {
  default = "1200"
}

variable "JWT_SERVICE_NAME" {
  default = "lambda-jwt-refresh"
}

variable "JWT_SECRET_NAME" {
  default = "jwt_enabled_services"
}

variable "JWT_REFRESH_INTERVAL" {
  type    = number
  default = 43200
}

variable "route53_zone_id" {
  description = "Zone ID for Route 53 records"
  default     = "Z2RSKZ9M7TJ9Z"
}

variable "application_alert_channel" {
  default = "@slack-permissions-platform-alerts"
}

variable "waf_blocking_alert_channel" {
  default = "@slack-ows-grass"
}

variable "datadog_monitor_threshold" {
  default = 1
}

variable "datadog_waf_monitor_threshold" {
  default = 500
}

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

variable "blocked_ip_addresses" {
  description = "List of blocked IP addresses"
  type        = list(string)
  default = [
    "45.137.76.71/32",
    "46.24.25.86/32",
    "77.243.87.61/32",
    "77.243.87.73/32",
    "83.59.145.48/32",
    "84.247.172.241/32",
    "93.114.159.49/32",
    "176.83.188.245/32",
    "185.195.59.235/32",
    "185.199.103.229/32",
    "192.145.38.174/32",
  ]
}
