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     = "dev"
}

variable "service_name" {
  default = "update_playlist_digest"
}

variable "application_family" {
  default = "apollo"
}

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     = ["apollo"]
}

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

variable "apollo_scheduled_job_secrets_manager_secret_names" {
  description = "List of secrets for apollo scheduled 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     = "apollo-errors-be-stage"
}

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

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\\-]/", "-")
}
