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

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

variable "service_name" {
  default = "ows-email-campaigns"
}

variable "application_family" {
  default = "fansifter"
}

variable "postgres_host" {
  default = "prod-ows-dmp.cluster-cb22xqmk0y0q.us-east-1.rds.amazonaws.com"
}

variable "postgres_port" {
  default = "5432"
}

variable "postgres_name" {
  default = "ows_dmp"
}

variable "postgres_username" {
  default = "ows_dmp_user"
}

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

variable "snowflake_database" {
  default = "FANSIFTER_APP_REPORTING"
}

variable "snowflake_schema" {
  default = "PROD"
}

variable "snowflake_warehouse" {
  default = "PROD_OWS_WH"
}

variable "snowflake_role" {
  default = "PROD_OWS_EMAIL_CAMPAIGNS"
}

variable "snowflake_user" {
  default = "PROD_OWS_EMAIL_CAMPAIGNS"
}

variable "stripo_base_url" {
  default = "https://prod-stripo-api-gateway.prod-fansifter.theorchard.io"
}

variable "stripo_client_id" {
  default = "ABDpkd7m8LSx3rPcg9XhNFDqGzxborDRx"
}

variable "stripo_automated_client_id" {
  default = "3wLH7sXdZDNZv3zFNBLpuLHG9O6SDp24sD"
}

variable "stripo_autosave_username" {
  default = "stripo_autosave"
}

variable "preference_center_url" {
  default = "https://fan-preferences.sonymusic.com"
}

variable "unsubscribe_host" {
  default = "unsub.e.sonymusicfans.com"
}

variable "domain_name" {
  description = "Domain name for ACM certificate and internal AWS resources"
  default     = "theorchard.io"
}

variable "public_domain_names" {
  description = "List of domain names for Cloudflare records pointing at ALB"
  type        = list(string)
  default     = ["theorchard.com", "awal.com"]
}

variable "reply_to_domains" {
  type        = map(string)
  description = "Domains for the Reply-To header added to emails"
  default = {
    sme        = "reply.e.sonymusicfans.com"
    theorchard = "reply.fans.theorchard.com"
    awal       = "reply.e.sonymusicfans.com"
  }
}

variable "secrets_manager_secret_names" {
  description = "List of secrets manager secrets to create."
  type        = list(string)
  default = [
    "RDS_EMAIL_CAMPAIGNS_PASSWORD",
    "SENDGRID_SME_API_KEY",
    "SENDGRID_ORCHARD_API_KEY",
    "SENDGRID_AWAL_API_KEY",
    "STRIPO_CLIENT_SECRET",
    "STRIPO_AUTOMATED_CLIENT_SECRET",
    "SNOWFLAKE_PRIVATE_KEY",
    "SNOWFLAKE_KEY_PASSPHRASE",
    "STRIPO_AUTOSAVE_PASSWORD",
    "EMAIL_PUBLIC_PREVIEW_SECRET_KEY",
    "REPLY_TO_SECRET_KEY",
    "GOOGLE_FONTS_API_KEY",
  ]
}

variable "orchard_aws_account_id" {
  description = "Orchard main AWS account ID for cross-account PrivateLink access"
  default     = "437795906767"
}

locals {
  preference_center_secret_key_name = "${var.environment}/ows-preference-center/SECRET_KEY"
}
