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

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

variable "service_name" {
  default = "sony-music-fans"
}

variable "application_family" {
  default = "audience-development"
}

#removed notifications entirely for sony-music-fans-emergency and songwhip-alerts - this can be added back in the future if needed but for now the alert is meaningless
variable "notification_endpoints" {
  default = ""
}

variable "secrets_manager_secret_names" {
  type        = list(string)
  description = "List of secret names to create in Secrets Manager"
  default     = [
    "SONY_MUSIC_FANS_API_KEY",
  ]
}

locals{
  urls_to_check = [
    {
      "name"        = "appreciation-engine-dashboard",
      "url"         = "https://dashboard-sme.theappreciationengine.com/",
      "status_code" = 301,
    },
    {
      "name"        = "appreciation-engine-dashboard-sign-in",
      "url"         = "https://dashboard-sme.theappreciationengine.com/sign-in/",
      "status_code" = 200,
    },
    {
      "name"        = "appreciation-engine-api-info",
      "url"         = "https://sme.theappreciationengine.com/v1.1/app/info?apikey=${data.aws_secretsmanager_secret_version.sony_music_fans_api_key.secret_string}",
      "status_code" = 200,
      "message"     = "AE API Endpoint is unavailable or experiencing issues @slack-The_Orchard-sony_music_fans_emergency",
    },
  ]
}
