variable "aws_region" {
  description = "AWS region to launch servers."
  default     = "us-east-1"
}

variable "environment" {
  default = "dev"
}

variable "aws_stack_name" {
  description = "Stack name, will be used as DNS prefix, e.g. wowza"
  type        = string
}

variable "vpc_id" {
  description = "ID of existing vpc"
  default     = "vpc-34dbfd51"
}

variable "elb_vpc_subnet_ids" {
  description = "IDs for elb subnets in VPC"
  type        = list(string)
}

variable "asg_vpc_subnet_ids" {
  description = "IDs for asg subnets in VPC"
  type        = list(string)
}

variable "sg_cidr_blocks" {
  description = "Ingress cidr block to the instances"
  type        = list(string)

  default = [
    "192.168.32.0/24",
    "192.168.33.0/24",
    "192.168.40.0/22",
    "10.30.0.0/22",
    "10.141.0.0/29",
  ]
}

variable "volume_type" {
  description = "Volume type standard, gp2"
  default     = "gp2"
}

variable "aws_instance_type" {
  description = "AWS instance type"
  default     = "m4.large"
}

variable "aws_asg_min_instance" {
  description = "autoscaling minimum instances"
  default     = "2"
}

variable "aws_asg_max_instance" {
  description = "autoscaling maximum instances"
  default     = "2"
}

variable "aws_asg_desire_instance" {
  description = "autoscaling desire instances"
  default     = "2"
}

variable "elb_scheme" {
  description = "internal or internet facing elb"
  default     = "true"
}

variable "aws_volume_size" {
  description = "AWS root volume size"
  default     = "60"
}

variable "aws_key_name" {
  description = "Desired name of AWS key pair"
  default     = "orcd-dev"
}

variable "user_data" {
  description = "User data script"
  default     = ""
}

variable "aws_elb_ssl_certificate" {
  description = "SSL certificate arn to use"
  type        = string
}

variable "aws_elb_access_ips" {
  description = "CIDR block for ELB ingress SG"
  type        = list(string)
}

variable "aws_elb_log_s3_bucket" {
  description = "Where to put the ELB logs in S3"
  default     = "orch-elb-logs"
}

variable "aws_elb_log_interval" {
  description = "How often to flush logs to S3"
  default     = "5"
}

variable "cross_zone_load_balancing" {
  description = "If cross-zone load balancing enabled"
  default     = true
}

variable "aws_route53_params" {
  description = "AWS route 53 parameters"
  type        = map(string)

  default = {
    zone_id = "Z21XEY26C989RH"
  }
}
