variable "aws_region" {
  description = "AWS region in which to create resources"
  default     = "us-east-1"
}

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

variable "service_name" {
  description = "Name of service"
  default     = "ows-service"
}

variable "transit_gateway_id" {
  type        = string
  description = "ID of transit gateway for VPN internal route gateway"
}

variable "vpc_cidr_block" {
  description = "CIDR block of VPC"
  default     = "10.0.0.0/16"
}

variable "vpc_private_subnets" {
  type        = map(string)
  description = "Map of private subnets to create in the format az = cidr_block"

  default = {
    us-east-1a = "10.0.0.0/24"
  }
}

variable "vpc_private_subnet_routes" {
  type        = list(string)
  description = "List of routes to associate with private route tables"

  default = []
}

variable "vpc_private_subnet_prefix_list_routes" {
  type        = list(string)
  description = "List of prefix list IDs to route to the transit gateway in the private route tables"

  default = []
}

variable "vpc_public_subnets" {
  type        = map(string)
  description = "Map of public subnets to create in the format az = cidr_block"

  default = {
    us-east-1a = "10.0.1.0/24"
  }
}

variable "vpc_public_subnet_routes" {
  type        = list(string)
  description = "List of routes to associate with public route tables"

  default = []
}

variable "vpc_public_subnet_prefix_list_routes" {
  type        = list(string)
  description = "List of prefix list IDs to route to the transit gateway in the public route tables"

  default = []
}

variable "vpc_peering_connection_enabled" {
  description = "Whether or not to establish vpc peering connection with existing VPC"
  default     = true
}

variable "vpc_peering_routes" {
  type        = map(string)
  description = "Map of VPC peer routes in destination equals target format"
}

variable "vpc_peer_id" {
  description = "ID of VPC to set default peering connection"
  default     = "vpc-12345"
}

variable "vpc_peer_id_cidr_block" {
  description = "CIDR block of VPC used for default peering connection"
  default     = "10.100.0.0/16"
}

