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

variable "application_family" {
  default = "audience-development"
}

variable "airflow_enabled" {
  description = "Whether to provision Airflow MWAA instance."
  default     = false
}

variable "airflow_version" {
  default = "2.5.1"
}

variable "environment_class" {
  default = "mw1.small"
}

variable "vpc_subnet_ids" {
  type    = list(string)
  default = ["subnet-067a6b45b079d7296", "subnet-098b89d0c58c5693a"]
}

variable "https_listener_allow_cidr_blocks" {
  description = "CIDR blocks from which to allow HTTPS"
  type        = list(string)

  default = [
    "192.168.31.0/24",
    "192.168.32.0/24",
    "192.168.33.0/24",
    "192.168.40.0/22",
    "10.30.0.0/22",
    "10.40.0.0/22",
    "10.100.12.0/23",
    "10.100.2.0/23"
  ]
}

variable "route53_hosted_zone" {
  default = "theorchard.io"
}

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

variable "snowflake_user" {
  default = "PROD_OWS_DMP"
}

locals {
  secrets_prefix                 = "${var.environment}/${var.service_name}"
  snowflake_password_secret_name = "${var.environment}/ows-dmp/SNOWFLAKE_DELPHI_PASSWORD"
}
