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

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

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

variable "application_family" {
  default = "fansifter"
}

variable "postgres_host" {
  default = "qa-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 = "QA"
}

variable "snowflake_warehouse" {
  default = "QA_OWS_WH"
}

variable "snowflake_role" {
  default = "QA_OWS_EMAIL_CAMPAIGNS"
}

variable "snowflake_user" {
  default = "QA_OWS_EMAIL_CAMPAIGNS"
}

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

variable "stripo_client_id" {
  default = "r7v2iwdo7rv4g7fxn7vggrkzppzts5682"
}

variable "stripo_automated_client_id" {
  default = "r7v2iwdo7rv4g7fxn7vggrkzppzts1659"
}

variable "stripo_autosave_username" {
  default = "stripo_autosave"
}

variable "stripo_v2_base_url" {
  default = "https://qa-stripo-v2-api-gateway.qa-fansifter.theorchard.io"
}

variable "stripo_v2_coediting_url" {
  default = "https://qa-stripo-v2-coediting.qa-fansifter.theorchard.io"
}

variable "stripo_v2_client_id" {
  default = "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4"
}

variable "stripo_v2_automated_client_id" {
  default = "a7f3b9d2e4c8a1f5b6d0e3c7a2f8b4d1"
}

variable "preference_center_url" {
  default = "https://qa-preferences.theorchard.io"
}

variable "unsubscribe_host" {
  default = "unsub.email.qa-fansifter.theorchard.io"
}

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

variable "reply_to_domains" {
  type        = map(string)
  description = "Domains for the Reply-To header added to emails"
  default = {
    sme        = "reply.email.qa-fansifter.theorchard.io"
    theorchard = "reply.email.qa-fansifter.theorchard.io"
    awal       = "reply.email.qa-fansifter.theorchard.io"
  }
}

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

variable "public_domain_name" {
  description = "Domain name for a Cloudflare record pointing at ALB"
  default     = "qapdesuite.com"
}

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