variable "aws_region" {
  default = "us-east-1"
}

variable "route53_zone_name" {
  type        = string
  description = "The name of the Route 53 zone"
  default     = "theorchard.com"
}

variable "environment" {
  type        = string
  description = "The environment"
  default     = "prod"
}

variable "application_family" {
  type        = string
  description = "The application family"
  default     = "devops"
}

variable "a_records" {
  type = map(object({
    records = list(string)
  }))
  default = {
    "*.theorchard.com" = {
      records = ["104.17.7.85", "104.17.8.85"]
    },
    "prod-infoblox-ddi-member01.ny.theorchard.com" = {
      records = ["10.160.0.27"]
    },
    "prod-infoblox-ddi01.ny.theorchard.com" = {
      records = ["10.160.0.26"]
    },
    "statementdb.theorchard.com" = {
      records = ["10.215.0.192"]
    }
    "vpn.theorchard.com" = {
      records = ["207.237.185.2"]
    }
  }
}

variable "cname_records" {
  type = map(object({
    records = list(string)
  }))
  default = {
    "ar-db.theorchard.com" = {
      records = ["prod-art-relations.cluster-cb22xqmk0y0q.us-east-1.rds.amazonaws.com"]
    },
    "bacon.theorchard.com" = {
      records = ["prod-bacon.prod-accounting.theorchard.io"]
    },
    "dd-db.theorchard.com" = {
      records = ["prod-direct-delivery-cluster.cluster-cb22xqmk0y0q.us-east-1.rds.amazonaws.com"]
    },
    "url8289.fans.theorchard.com" = {
      records = ["sendgrid.net"]
    },
    "g4iufeh6a2fixlj2tl3wplhzhfhgnew4._domainkey.theorchard.com" = {
      records = ["g4iufeh6a2fixlj2tl3wplhzhfhgnew4.dkim.amazonses.com"]
    },
    "nrcl33xqn64zznzvkhdtgx7ogjuxbzbn._domainkey.theorchard.com" = {
      records = ["nrcl33xqn64zznzvkhdtgx7ogjuxbzbn.dkim.amazonses.com"]
    },
    "rpe4pfofob4g56lsocbjxax3mdljtkxd._domainkey.theorchard.com" = {
      records = ["rpe4pfofob4g56lsocbjxax3mdljtkxd.dkim.amazonses.com"]
    },
    "reportsar.theorchard.com" = {
      records = ["prod-art-relations.cluster-ro-cb22xqmk0y0q.us-east-1.rds.amazonaws.com"]
    },
    "reportsar02.theorchard.com" = {
      records = ["prod-art-relations.cluster-ro-cb22xqmk0y0q.us-east-1.rds.amazonaws.com"]
    },
    "reportsdd02.theorchard.com" = {
      records = ["prod-direct-delivery-cluster.cluster-ro-cb22xqmk0y0q.us-east-1.rds.amazonaws.com"]
    },
  }
}

variable "mx_records" {
  type = map(object({
    records = list(string)
  }))
  default = {

  }
}

variable "ram_share_ou_ids" {
  type    = set(string)
  default = [
    "ou-ax9e-vu43qt3i", # The Orchard OU
    "ou-ax9e-ouayejxi", # Data Strategy aka GDB OU
  ]
}
