variable "dev_box_id" {
  type        = string
  description = "A unique identifier for the dev box, e.g. your name, a team, a project or a feature."

  validation {
    condition     = length(var.dev_box_id) <= 24
    error_message = "Dev box ID must be 24 characters or fewer."
  }
}

variable "owner_email_address" {
  type        = string
  description = "Your email address. This will be used for any generated emails."
}

variable "owner_name" {
  type        = string
  description = "Your full name. This will be used for any generated emails."
}

variable "application_family" {
  type        = string
  description = "The application family to tag the dev box with. Note this does not currently confer any ABAC permissions in the shared services account."
}

variable "instance_type" {
  type        = string
  description = "The EC2 instance type for the dev box."
  default     = "t3.large"
}

variable "disk_size" {
  type        = number
  description = "The disk size for the EC2 instance in GB."
  default     = 50
}

variable "vpc_name" {
  type        = string
  description = "The name of the VPC to deploy the dev box in."
  default     = "shared-terraform-aws-vpc"
}

variable "subnet_names" {
  type        = set(string)
  description = "The names of the subnets to deploy the dev box in"
  default = [
    "shared_dev_box_subnet_us_east_1a",
    "shared_dev_box_subnet_us_east_1b",
    "shared_dev_box_subnet_us_east_1c",
  ]
}

variable "route53_zone_name" {
  type        = string
  description = "The name of the Route 53 zone to create DNS records in."
  default     = "shared.theorchard.io"
}

variable "subdomain" {
  type        = string
  description = "The name of the subdomain to create the Route 53 records under."
  default     = "box.shared.theorchard.io"
}

variable "lb_logs_bucket_name" {
  type        = string
  description = "The name of the load balancer logging bucket."
  default     = "shared-orcd-lb-logs"
}

variable "waf_name" {
  type        = string
  description = "The name of the WAF to use."
  default     = "shared-dev-box-waf-block"
}

variable "aws_key_name" {
  type        = string
  description = "The name of the AWS key pair to use."
  default     = "orchard_admin"
}

variable "map_migrated_tag" {
  type        = string
  description = "The value of the map-migrated tag for the MAP program"
  default     = "d-server-03qkedizrl4cn5"
}
