variable "aws_region" {
  default     = "us-east-1"
  description = "Fargate AWS region"
}

variable "environment" {
  description = "Available values:  prod"
  default     = "prod"
}

variable "service_name" {
  default = "swf-spotify-artificial-streams"
}

variable "flow_name" {
  default = "spotify_artificial_streams"
}

variable "secrets_manager_service_name" {
  default = "spotify-art-streams"
}

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

variable "swf_domain" {
  default = "prod_swf_feed_ingestion"
}

variable "feed_ingestion_data_bucket" {
  default = "cucumbers"
}

variable "feed_ingestion_drop_bucket" {
  default = "prod-orcd-ftp"
}

variable "feed_ingestion_table" {
  default = "prod_feed_ingestion_status"
}

variable "logger_dsn" {
  default = "https://prod-fluentd-applications.theorchard.io:8888/application"
}

variable "notification_endpoint" {
  default = "@slack-data-alerts"
}

variable "escalation_notification_endpoints" {
  default = "@slack-data-alarm"
}

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

variable "snowflake_schema" {
  default = "PROD"
}

variable "snowflake_warehouse" {
  default = "PROD_ETL_WAREHOUSE"
}

variable "snowflake_database" {
  default = "FACTS"
}

variable "snowflake_role" {
  default = "FACTS_DB_PROD_SCHEMA_READWRITE"
}

variable "snowflake_user" {
  default = "PROD_SWF_SPOTIFY_ARTIFICIAL_STREAMS_ETL"
}

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

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

locals {
  pre_existing_policy_names = [
    "S3-prod-orcd-ftp-SpotifyMarketShare-RO",
    "SWF-fullaccess",
    "S3-prod-cucumbers-RW",
    "Dynamo-${var.environment}_feed_ingestion_status-RW",
  ]
  tags = {
    application_family = var.application_family
    environment = var.environment
    role = "service-user"
    terraformed = true
  }
}
