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

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

variable "service_name" {
  default = "swf-delphi-crm"
}

variable "flow_name" {
  default = "delphi_crm"
}

variable "secrets_manager_service_name" {
  default = "delphi_crm"
}

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

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

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

variable "additional_tags" {
  default = {
  }
}

variable "feed_ingestion_data_bucket" {
  default = "qa-cucumbers"
}

variable "drop_bucket" {
  default = "prod-delphi-crm"
}

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

variable "snowflake_database" {
  default = "STAGE_DELPHI_CRM_DATA"
}

variable "snowflake_role" {
  default = "QA_ETL_DELPHI_CRM_ROLE"
}

variable "snowflake_schema" {
  default = "RAW_SALESFORCE_MARKETING_CLOUD"
}

variable "snowflake_user" {
  default = "QA_SWF_DELPHI_CRM_ETL"
}

variable "snowflake_warehouse" {
  default = "QA_ETL_WH"
}

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

locals {
  feed_ingestion_table = "${var.environment}_feed_ingestion_status"
  existing_swf_policy_names = [
    "SWF-fullaccess",
    "Dynamo-${var.environment}_feed_ingestion_status-RW",
    "S3-${var.environment}-cucumbers-RW",
    // "db-delphi-prod-users-role-access-policy",
  ]

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