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

variable "service_name" {
  default = "tadas-etl"
}


variable "secrets_manager_service_name" {
  default = "tadas-etl"
}

variable "snowflake_account" {
  default = "delphi.us-east-1"
}

variable "team_name" {
  description = "Datadog team name"
  default     = "data-platform"
}

variable "snowflake_database" {
  default = "FACTS"
}

variable "snowflake_schema" {
  default = "PROD"
}

variable "snowflake_warehouse" {
  default = "PROD_ETL_WAREHOUSE"
}

variable "snowflake_role" {
  default = ""
}

variable "snowflake_user" {
  default = "PROD_TADAS_ETL"
}

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

variable "jenkins_username" {
  default = "jenkinsjobrunner"
}

variable "jenkins_url" {
  default = "https://scheduler.theorchard.io/"
}

variable "efs_volume_container_path" {
  description = "Path inside container to mount EFS volume"
  default     = "/app/backend/files"
}

variable "required_dsps" {
  description = "comma separated list of: 'spotify,apple,amazon,tiktok'"
  default     = "spotify,apple,tiktok"
}

variable "model_version" {
  description = "TADAS model version. One of: initial,v2025sep'"
  default     = "v2025sep"
}

variable "secrets_manager_secret_names" {
  description = "List of secrets manager secrets to create"
  type        = list(string)
  default = [
    "SNOWFLAKE_KEY",
    "JENKINS_API_TOKEN",
  ]
}

locals {
  tags = {
    application_family = var.application_family
    environment        = var.environment
    role               = "service-user"
    terraformed        = true
  }

  feed_ingestion_table = "${var.environment}_feed_ingestion_status"

  existing_policy_names = [
    "Dynamo-${var.environment}_feed_ingestion_status-RW",
  ]

}

