variable "environment" {
  description = "Name of environment, e.g. dev, sandbox, qa, prod"
  default     = "prod"
}

variable "application_family" {
  type        = string
  description = "Name of application family"
  default     = "accounting"
}

variable "team_name" {
  type        = string
  description = "Name of the team"
  default     = "accounting"
}

variable "service_name" {
  description = "Name of service"
  default     = "statementdb"
}

variable "aws_region" {
  description = "Name of AWS region for resources"
  default     = "us-east-1"
}

variable "map_migrated_tag" {
  type        = string
  description = "Name of SME MAP agreement long tag ID"
  default     = "KNBMDMW06I"
}

variable "ssh_ingress_cidr_blocks" {
  description = "List of CIDR blocks to allow ssh access to instance."
  type        = list(string)
  default = [
    "192.168.32.0/24",
    "162.49.36.0/22", # SME VPN Ashburn
    "162.49.1.137/32" # SME VPN Madison
  ]
}

variable "mysql_ingress_cidr_blocks" {
  description = "CIDR blocks from which to allow mysql traffic"
  type        = list(string)

  default = [
    "192.168.32.0/22", # devops users
    "192.168.37.0/27", # statement processing users
    "192.168.40.0/22", # vpn users
    "10.12.38.0/23",   # SME Azure W365 network
    "10.12.242.0/25",  # SME AWS Workspaces network
    "162.49.75.0/24"   # SME Ashburn Virginia network
  ]
}

variable "number_of_snapshots_to_retain" {
  description = "Number of EBS snapshots to retain"
  default     = 30
}

variable "time_to_evaluate_snapshot_schedule" {
  description = "The time (24-hour clock) at which snapshot schedules are evaluated"
  default     = "01:00"
}

variable "domain_name" {
  type    = string
  default = "theorchard.com"
}

locals {
  downstream_services_security_groups = [
    "sg-06e86470c6a458fc7", # prod-accounting-fivetran-proxy-task-security-group
  ]
}
