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

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

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

variable "application_family" {
  default = "podcast"
}

variable "output_assets_bucket_cors" {
  type = list(object({
    allowed_headers = list(string)
    allowed_methods = list(string)
    allowed_origins = list(string)
    expose_headers  = list(string)
    max_age_seconds = number
    }
  ))
  description = "List of CORS rules for output assets bucket"
  default = [
    {
      allowed_headers = ["*"]
      allowed_methods = ["GET"]
      allowed_origins = [
        "http://localhost:*",
        "https://qa-frontend-podcast-standalone.theorchard.io",
        "https://podcast.qaorch.com",
        "https://sonymusic.qaorch.com"
      ]
      expose_headers  = ["ETag"]
      max_age_seconds = 3000
    },
    {
      allowed_headers = ["*"]
      allowed_methods = ["PUT", "POST"]
      allowed_origins = [
        "http://localhost:*",
        "https://qa-frontend-podcast-standalone.theorchard.io",
        "https://podcast.qaorch.com",
        "https://sonymusic.qaorch.com"
      ]
      expose_headers  = ["ETag"]
      max_age_seconds = 3000
    }
  ]
}

variable "output_assets_domain" {
  description = "Domain name for output bucket assets"
  default     = "qa-podcast-assets.theorchard.io"
}

variable "auth0_client_id" {
  description = "Auth0 client ID"
  default     = "5qxOmkhLcy6YcfT7jiXmbLjoZ9GwJMcr"
}

variable "secrets_manager_secret_names" {
  description = "List of secrets manager secrets to create"
  type        = list(string)
  default = [
    "rds_master_username",
    "rds_master_password",
    "podcast_db_name",
    "podcast_db_username",
    "podcast_db_password",
    "podcast_db_host",
    "PODCAST_DB_URL",
    "MEGAPHONE_API_TOKEN",
    "CLOUDFRONT_KEY_PAIR_ID",
    "CLOUDFRONT_PRIVATE_KEY",
    "MEGAPHONE_ORG_ID"
  ]
}

variable "notification_endpoints" {
  default = "@slack-monitoring"
}

variable "escalation_notification_endpoints" {
  default = "@slack-monitoring"
}

variable "splitio_preforked" {
  default = "false"
}
