variable "aws_region" {
  default     = "us-east-1"
  description = "Which AWS region to spin up the environment in"
}

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

variable "service_name" {
  default = "slz_scheduler"
}

variable "application_family" {
  default = "delphi"
}

variable "sentry_organization" {
  description = "The slug of the organization."
  default     = "the-orchard"
}

variable "sentry_teams" {
  description = "(Set of string) Team assignment to the sentry project"
  default     = ["delphi"]
}

variable "sentry_platform" {
  description = "Python (python-flask, python-awslambda, python) Java, PHP"
  default     = "python"
}

variable "delphi_secrets_manager_secret_names" {
  description = "List of secrets for decibel-api ecs service."
  type        = list(string)
  default = [
    "SENTRY_DSN",
  ]
}

variable "slack_organization_name" {
  description = "The name of the Slack organization."
  default     = "The Orchard"
}

variable "slack_channel_name" {
  description = "The name of the Slack channel."
  default     = "slz-alerts"
}

variable "slack_channel_id" {
  description = "The id of the Slack channel."
  default     = "C05RM0JU0JX"
}

variable "notification_tags" {
  description = "The list of tags that will be shown in notification."
  default     = ["environment", "user", "url", "browser", "device", "os", "transaction"]
}

locals {
  project_name = lower("${var.environment}-${var.application_family}-${var.service_name}")
  project_slug = replace(local.project_name, "/[^a-z0-9\\-]/", "-")
}
