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

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

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

variable "domain_name" {
  default     = "qa-permissions-platform.theorchard.io"
  description = "Route53 domain name"
}

variable "trust_users" {
  description = "List of trusted Principal users in the ORCD account who need RO Opensearch"
  type        = list(string)
  default = [
    "aentwistle",
    "bburton",
    "buvarov",
    "defanov",
    "diakunchokov",
    "iarroyo",
    "jchung",
    "mmoy",
    "mthomas",
    "mwalker",
    "npatel",
    "otalaga",
    "ratoui",
    "tcalhoun",
    "tmartino",
    "mcesonis",
    "pbaylas",
  ]
}

variable "es_instance_type" {
  # These instances are covered by a Reserved Instance purchase, so changing the instance type could have significant cost implications.
  # Please consult with the DevOps team before making any changes to this.
  default = "m6g.2xlarge.search"
}

variable "dedicated_master_type" {
  # These instances are covered by a Reserved Instance purchase, so changing the instance type could have significant cost implications.
  # Please consult with the DevOps team before making any changes to this.
  default = "m6g.large.search"
}

locals {
  tags = {
    environment        = var.environment
    application_family = var.application_family
    terraformed        = true
  }
  trust_user_arns = [for u in var.trust_users : "arn:aws:iam::437795906767:user/${u}"]
}

variable "team_name" {
  description = "Team name for tagging resources"
  default     = "permissions-platform"
}
